PhpNamespace
class PhpNamespace
Namespaced part of a PHP file.
Generates:
- namespace statement
- variable amount of use statements
- one or more class declarations
Methods
__construct($name = null)
No description
string|null
getName()
No description
setBracketedSyntax($state = true)
No description
bool
getBracketedSyntax()
No description
addUse($name, $alias = null, $aliasOut = null)
No description
string[]
getUses()
No description
string
unresolveName($name)
No description
addInterface($name)
No description
getClasses()
No description
string
__toString()
No description
Details
at line 48
__construct($name = null)
No description
at line 58
setName($name)
deprecated
deprecated
No description
at line 68
string|null
getName()
No description
at line 79
PhpNamespace
setBracketedSyntax($state = true)
internal |
No description
at line 89
bool
getBracketedSyntax()
No description
at line 102
PhpNamespace
addUse($name, $alias = null, $aliasOut = null)
No description
at line 135
string[]
getUses()
No description
at line 145
string
unresolveName($name)
No description
at line 174
ClassType
addClass($name)
No description
at line 188
ClassType
addInterface($name)
No description
at line 198
ClassType
addTrait($name)
No description
at line 207
ClassType[]
getClasses()
No description
at line 216
string
__toString()
No description
Traits
SmartObject