public function findQuery($strQuery)
    {
        foreach ($this->queries as $query) {
            if ($query->matches($strQuery)) {
                return $query;
            }
        }

        return null;
    }
public function findQuery($strQuery)
    {
        foreach ($this->queries as $query) {
            if ($query->matches($strQuery)) {
                return $query;
            }
        }

        return null;
    }
public function findQuery ( $ strQuery ) { foreach ( $ this -> queries as $ query ) { if ( $ query -> matches ( $ strQuery ) ) { return $ query ; } } return null ; }
Try to find the query matching the given string.

@param string $strQuery The query string.

@return FakeQuery|null
Try to find the query matching the given string .