Inheritance: extends ClassLike
示例#1
0
 /**
  * @return int
  */
 public function getLine()
 {
     return $this->traitAfter->getLine();
 }
 /**
  * @param Node\Stmt\Trait_ $node
  */
 protected function parseTraitNode(Node\Stmt\Trait_ $node)
 {
     if (!isset($node->namespacedName)) {
         return;
     }
     $this->currentStructuralElement = $node;
     $this->structuralElements[$node->namespacedName->toString()] = ['name' => $node->name, 'type' => 'trait', 'startLine' => $node->getLine(), 'docComment' => $node->getDocComment() ? $node->getDocComment()->getText() : null, 'methods' => [], 'properties' => [], 'constants' => []];
 }
 /**
  * @return int
  */
 public function getLine()
 {
     return $this->traitBefore->getLine();
 }