PHP Class Trismegiste\Mondrian\Visitor\PublicCollector

Inheritance: extends FqcnHelper
Datei anzeigen Open project: trismegiste/mondrian Class Usage Examples

Protected Properties

Property Type Description
$currentClass
$currentMethod

Public Methods

Method Description
enterNode ( PHPParser_Node $node ) {@inheritDoc}
leaveNode ( PHPParser_Node $node ) {@inheritDoc}

Protected Methods

Method Description
enterClassNode ( PHPParser_Node_Stmt_Class $node ) Visits a class node
enterInterfaceNode ( PHPParser_Node_Stmt_Interface $node ) Visits an interface node
enterPublicMethodNode ( PHPParser_Node_Stmt_ClassMethod $node ) Visits a public method node
enterTraitNode ( PHPParser_Node_Stmt_Trait $node ) Visits an trait node
extractAnnotation ( PHPParser_Node_Stmt $node ) Extracts annotations in the comment of a statement and injects them in attribute of the node
getCurrentMethodIndex ( ) : string the vertex name for a MethodVertex

Method Details

enterClassNode() abstract protected method

Visits a class node
abstract protected enterClassNode ( PHPParser_Node_Stmt_Class $node )
$node PHPParser_Node_Stmt_Class

enterInterfaceNode() abstract protected method

Visits an interface node
abstract protected enterInterfaceNode ( PHPParser_Node_Stmt_Interface $node )
$node PHPParser_Node_Stmt_Interface

enterNode() public method

{@inheritDoc}
public enterNode ( PHPParser_Node $node )
$node PHPParser_Node

enterPublicMethodNode() abstract protected method

Visits a public method node
abstract protected enterPublicMethodNode ( PHPParser_Node_Stmt_ClassMethod $node )
$node PHPParser_Node_Stmt_ClassMethod

enterTraitNode() abstract protected method

Visits an trait node
abstract protected enterTraitNode ( PHPParser_Node_Stmt_Trait $node )
$node PHPParser_Node_Stmt_Trait

extractAnnotation() protected method

Extracts annotations in the comment of a statement and injects them in attribute of the node
protected extractAnnotation ( PHPParser_Node_Stmt $node )
$node PHPParser_Node_Stmt

getCurrentMethodIndex() protected method

the vertex name for a MethodVertex
protected getCurrentMethodIndex ( ) : string
return string

leaveNode() public method

{@inheritDoc}
public leaveNode ( PHPParser_Node $node )
$node PHPParser_Node

Property Details

$currentClass protected_oe property

protected $currentClass

$currentMethod protected_oe property

protected $currentMethod