You are here

public function StaticReflectionParser::getDocComment in Plug 7

Gets the doc comment.

Parameters

string $type The type: 'class', 'property' or 'method'.:

string $name The name of the property or method, not needed for 'class'.:

Return value

string The doc comment, empty string if none.

File

lib/doctrine/common/lib/Doctrine/Common/Reflection/StaticReflectionParser.php, line 279

Class

StaticReflectionParser
Parses a file for namespaces/use/class declarations.

Namespace

Doctrine\Common\Reflection

Code

public function getDocComment($type = 'class', $name = '') {
  $this
    ->parse();
  return $name ? $this->docComment[$type][$name] : $this->docComment[$type];
}