PHP Class Trismegiste\Mondrian\Visitor\State\FileLevelTemplate

Inheritance: extends AbstractState
Mostra file Open project: trismegiste/mondrian

Protected Properties

Property Type Description
$aliases Currently defined namespace and class aliases
$namespace Current namespace

Public Methods

Method Description
enter ( PhpParser\Node $node )
getName ( )
getNamespacedName ( PhpParser\Node $node ) : string Helper : get the FQCN of the given $node->name
resolveClassName ( Name $src ) : Name | PhpParser\Node\Name\FullyQualified resolve the Name with current namespace and alias

Protected Methods

Method Description
enterClassNode ( Class_ $node ) Enters in a class node
enterInterfaceNode ( Interface_ $node ) Enters in an interface node
enterTraitNode ( Trait_ $node ) Enters in a trait node

Method Details

enter() final public method

final public enter ( PhpParser\Node $node )
$node PhpParser\Node

enterClassNode() abstract protected method

Enters in a class node
abstract protected enterClassNode ( Class_ $node )
$node PhpParser\Node\Stmt\Class_

enterInterfaceNode() abstract protected method

Enters in an interface node
abstract protected enterInterfaceNode ( Interface_ $node )
$node PhpParser\Node\Stmt\Interface_

enterTraitNode() abstract protected method

Enters in a trait node
abstract protected enterTraitNode ( Trait_ $node )
$node PhpParser\Node\Stmt\Trait_

getName() public method

public getName ( )

getNamespacedName() public method

Helper : get the FQCN of the given $node->name
public getNamespacedName ( PhpParser\Node $node ) : string
$node PhpParser\Node
return string

resolveClassName() public method

resolve the Name with current namespace and alias
public resolveClassName ( Name $src ) : Name | PhpParser\Node\Name\FullyQualified
$src PhpParser\Node\Name
return PhpParser\Node\Name | PhpParser\Node\Name\FullyQualified

Property Details

$aliases protected_oe property

Currently defined namespace and class aliases
protected $aliases

$namespace protected_oe property

Current namespace
protected $namespace