CloneableInstantiable
Methods |
public __construct(PhpParser Create a name context.
|
public addAlias(PhpParser Add an alias / import.
|
public getNamespace() : ?PhpParser Get current namespace.
|
public getPossibleNames(string $name, int $type) : array Get possible ways of writing a fully qualified name (e.g., by making use of aliases).
|
public getResolvedClassName(PhpParser Get resolved class name.
|
public getResolvedName(PhpParser Get resolved name.
|
public getShortName(string $name, int $type) : PhpParser Get shortest representation of this fully-qualified name.
|
public startNamespace(?PhpParser Start a new namespace. This also resets the alias table.
|
Properties |
protected array $aliases = []
|
protected PhpParser
|
protected ?PhpParser
|
protected array $origAliases = []
|
Methods |
private getNamespaceRelativeName(string $name, string $lcName, int $type) : ?PhpParser |
private normalizeConstName(string $name) : string |
private resolveAlias(PhpParser |