PHP Class Trismegiste\Mondrian\Visitor\FqcnHelper

Inheritance: extends PHPParser_NodeVisitorAbstrac\PHPParser_NodeVisitorAbstract
Afficher le fichier Open project: trismegiste/mondrian Class Usage Examples

Protected Properties

Свойство Type Description
$aliases Currently defined namespace and class aliases
$currentPhpFile current file
$namespace Current namespace

Méthodes publiques

Méthode Description
beforeTraverse ( array $nodes )
enterNode ( PHPParser_Node $node )

Méthodes protégées

Méthode 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 méthode

public beforeTraverse ( array $nodes )
$nodes array

enterNode() public méthode

public enterNode ( PHPParser_Node $node )
$node PHPParser_Node

getNamespacedName() protected méthode

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

resolveClassName() protected méthode

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
Résultat 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