Context
class Context
Class Context - The context in which a DocBlock occurs.
Properties
| protected string | $namespace | ||
| protected array | $namespaceAliases | ||
| protected string | $lsen |
Methods
Cteates a new context.
No description
No description
Returns the Local Structural Element Name.
Sets a new namespace.
Sets the namespace aliases, replacing all previous ones.
Adds a namespace alias to the context.
Details
at line 32
__construct(string $namespace = '', array $namespaceAliases = array(), string $lsen = '')
Cteates a new context.
at line 43
string
getNamespace()
at line 51
array
getNamespaceAliases()
at line 61
string
getLSEN()
Returns the Local Structural Element Name.
at line 77
Context
setNamespace(string $namespace)
Sets a new namespace.
Sets a new namespace for the context. Leading and trailing slashes are trimmed, and the keywords "global" and "default" are treated as aliases to no namespace.
at line 98
Context
setNamespaceAliases(array $namespaceAliases)
Sets the namespace aliases, replacing all previous ones.
at line 116
Context
setNamespaceAlias(string $alias, string $fqnn)
Adds a namespace alias to the context.
at line 134
Context
setLSEN(string $lsen)
Sets a new Local Structural Element Name.
Sets a new Local Structural Element Name. A local name also contains punctuation determining the kind of structural element (e.g. trailing "(" and ")" for functions and methods).