PhpNamespace
class PhpNamespace extends Object
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
setName($name)
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 38
__construct($name = NULL)
No description
at line 48
PhpNamespace
setName($name)
No description
at line 58
string|null
getName()
No description
at line 69
PhpNamespace
setBracketedSyntax($state = TRUE)
internal |
No description
at line 79
bool
getBracketedSyntax()
No description
at line 92
PhpNamespace
addUse($name, $alias = NULL, $aliasOut = NULL)
No description
at line 125
string[]
getUses()
No description
at line 135
string
unresolveName($name)
No description
at line 164
ClassType
addClass($name)
No description
at line 178
ClassType
addInterface($name)
No description
at line 188
ClassType
addTrait($name)
No description
at line 197
ClassType[]
getClasses()
No description
at line 206
string
__toString()
No description