*/
protected $classAnnotationOptimize;
+ /**
+ * A ClassFinder object which finds the class.
+ *
+ * @var ClassFinderInterface
+ */
+ protected $finder;
+
/**
* Whether the parser has run.
*
/**
* The docComment of the class.
*
- * @var string
+ * @var mixed[]
*/
protected $docComment = [
'class' => '',
$last_token = false;
while ($token = $tokenParser->next(false)) {
- if (is_array($token)) {switch ($token[0]) {
+ switch ($token[0]) {
case T_USE:
$this->useStatements = array_merge($this->useStatements, $tokenParser->parseUseStatement());
break;
$docComment = $token[1];
break;
case T_CLASS:
- if ($last_token !== T_PAAMAYIM_NEKUDOTAYIM) {$this->docComment['class'] = $docComment;
- $docComment = '';}
+ if ($last_token !== T_PAAMAYIM_NEKUDOTAYIM) {
+ $this->docComment['class'] = $docComment;
+ $docComment = '';
+ }
break;
case T_VAR:
case T_PRIVATE:
if (!$fullySpecified) {
$this->parentClassName = '\\' . $this->namespace . '\\' . $this->parentClassName;
}
- break;}
+ break;
}
$last_token = $token[0];