CloneableInstantiable
Methods |
public __construct(PhpParser Create a name context.
|
public addAlias(PhpParser Add an alias / import.
|
public getNamespace() 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 $aliases = []
|
protected $errorHandler = NULL
|
protected $namespace = NULL
|
protected $origAliases = []
|
Methods |
private getNamespaceRelativeName(string $name, string $lcName, int $type) |
private normalizeConstName(string $name) |
private resolveAlias(PhpParser |