PhpNamespace
final class PhpNamespace
Namespaced part of a PHP file.
Generates:
- namespace statement
- variable amount of use statements
- one or more class declarations
Methods
__construct(string $name)
No description
string
getName()
No description
setBracketedSyntax(bool $state = true)
No description
bool
getBracketedSyntax()
No description
addUse(string $name, string $alias = null, string $aliasOut = null)
No description
array
getUses()
No description
string
unresolveName(string $name)
No description
addInterface(string $name)
No description
array
getClasses()
No description
string
__toString()
No description
Details
at line 47
__construct(string $name)
No description
at line 56
string
getName()
No description
at line 66
PhpNamespace
setBracketedSyntax(bool $state = true)
internal |
No description
at line 73
bool
getBracketedSyntax()
No description
at line 83
PhpNamespace
addUse(string $name, string $alias = null, string $aliasOut = null)
No description
at line 117
array
getUses()
No description
at line 123
string
unresolveName(string $name)
No description
at line 148
ClassType
addClass(string $name)
No description
at line 158
ClassType
addInterface(string $name)
No description
at line 164
ClassType
addTrait(string $name)
No description
at line 173
array
getClasses()
No description
at line 179
string
__toString()
No description
Traits
SmartObject