PHP Class Trismegiste\Mondrian\Visitor\FqcnHelper

Inheritance: extends PHPParser_NodeVisitorAbstrac\PHPParser_NodeVisitorAbstract
Mostra file Open project: trismegiste/mondrian Class Usage Examples

Protected Properties

Property Type Description
$aliases Currently defined namespace and class aliases
$currentPhpFile current file
$namespace Current namespace

Public Methods

Method Description
beforeTraverse ( array $nodes )
enterNode ( PHPParser_Node $node )

Protected Methods

Method Description
getNamespacedName ( PHPParser_Node $node ) : string Helper : get the FQCN of the given $node->name
resolveClassName ( PHPParser_Node_Name $src ) : PHPParser_Node_Name | PHPParser_Node_Name_FullyQualified resolve the Name with current namespace and alias

Method Details

beforeTraverse() public method

public beforeTraverse ( array $nodes )
$nodes array

enterNode() public method

public enterNode ( PHPParser_Node $node )
$node PHPParser_Node

getNamespacedName() protected method

Helper : get the FQCN of the given $node->name
protected getNamespacedName ( PHPParser_Node $node ) : string
$node PHPParser_Node
return string

resolveClassName() protected method

resolve the Name with current namespace and alias
protected resolveClassName ( PHPParser_Node_Name $src ) : PHPParser_Node_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

$currentPhpFile protected_oe property

current file
protected $currentPhpFile

$namespace protected_oe property

Current namespace
protected $namespace