public function TokenParser::__construct

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Annotations/TokenParser.php, line 51

Class

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

Namespace

Doctrine\Common\Annotations

Code

public function __construct($contents) {
  $this->tokens = token_get_all($contents);
  $this->numTokens = count($this->tokens);
  $this->pointer = 0;
}