You are here

public function TokenParser::parseClass in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php \Doctrine\Common\Annotations\TokenParser::parseClass()

Gets the class name.

Return value

string The found class name.

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/TokenParser.php, line 180

Class

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

Namespace

Doctrine\Common\Annotations

Code

public function parseClass() {

  // Namespaces and class names are tokenized the same: T_STRINGs
  // separated by T_NS_SEPARATOR so we can use one function to provide
  // both.
  return $this
    ->parseNamespace();
}