/** * @param Token $firstToken * @return bool */ protected function extractObjectPhrase(Token $firstToken) { if ($firstToken->isNew() && $this->_tokenizer->isMatchingClass($this->className)) { $arguments = $this->_tokenizer->getFunctionArgumentsTokens(); $phrase = $this->_collectPhrase(array_shift($arguments)); if (null !== $phrase) { $this->_addPhrase($phrase, count($arguments), $this->_file, $firstToken->getLine()); return true; } } return false; }