function TokenParser::parseClass

Gets the class name.

Return value

string The found class name.

File

core/lib/Drupal/Component/Annotation/Doctrine/TokenParser.php, line 221

Class

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

Namespace

Drupal\Component\Annotation\Doctrine

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.