コード例 #1
0
 /**
  * {@inheritDoc}
  */
 public function enterNode(Node $node)
 {
     $this->recordExtendsUsage($node);
     $this->recordImplementsUsage($node);
     $this->recordClassExpressionUsage($node);
     $this->recordCatchUsage($node);
     $this->recordFunctionCallUsage($node);
     $this->recordFunctionParameterTypesUsage($node);
     $this->recordFunctionReturnTypeUsage($node);
     $this->recordConstantFetchUsage($node);
     $this->recordTraitUsage($node);
     return parent::enterNode($node);
 }
コード例 #2
0
 /**
  * {@inheritDoc}
  */
 public function beforeTraverse(array $nodes)
 {
     $this->definedSymbols = [];
     return parent::beforeTraverse($nodes);
 }
コード例 #3
0
 public function testBeforeTraverse()
 {
     $this->assertCount(0, $this->sut->getReport());
 }
コード例 #4
0
ファイル: NodeVisitor.php プロジェクト: angrybender/phpPM
 public function afterTraverse(array $nodes)
 {
     parent::afterTraverse($nodes);
 }