You are here

public function TokenParser::parseClass in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_annotation_discovery/lib/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

modules/providers/service_container_annotation_discovery/lib/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();
}