public function StaticReflectionParser::__construct

Parses a class residing in a PSR-0 hierarchy.

Parameters

string $class: The full, namespaced class name.

ClassFinder $finder: A ClassFinder object which finds the class.

boolean $classAnnotationOptimize: Only retrieve the class docComment. Presumes there is only one statement per line.

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Reflection/StaticReflectionParser.php, line 104

Class

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

Namespace

Doctrine\Common\Reflection

Code

public function __construct($className, $finder, $classAnnotationOptimize = false) {
  $this->className = ltrim($className, '\\');
  if ($lastNsPos = strrpos($this->className, '\\')) {
    $this->namespace = substr($this->className, 0, $lastNsPos);
  }
  $this->finder = $finder;
  $this->classAnnotationOptimize = $classAnnotationOptimize;
}