/** * Extracts content of method * * @param ReflectedMethod $method * @param integer $n * @param TokenCollection $tokens * @return $this */ private function extractContent(ReflectedMethod $method, $n, TokenCollection $tokens) { $end = $this->searcher->getPositionOfClosingBrace($n, $tokens); if ($end > 0) { $collection = $tokens->extract($n, $end); $method->setContent($collection->asString()); } return $this; }