PhpFile
class PhpFile
Instance of PHP file.
Generates:
- opening tag (<?php)
- doc comments
- one or more namespaces
Methods
setComment($val)
No description
string|null
getComment()
No description
addComment($val)
No description
addInterface($name)
No description
addNamespace($name)
No description
string
__toString()
No description
Details
at line 37
PhpFile
setComment($val)
No description
at line 47
string|null
getComment()
No description
at line 57
PhpFile
addComment($val)
No description
at line 65
setDocuments(array $s)
deprecated
deprecated
No description
at line 73
getDocuments()
deprecated
deprecated
No description
at line 81
addDocument($s)
deprecated
deprecated
No description
at line 92
ClassType
addClass($name)
No description
at line 104
ClassType
addInterface($name)
No description
at line 116
ClassType
addTrait($name)
No description
at line 128
PhpNamespace
addNamespace($name)
No description
at line 140
string
__toString()
No description
Traits
SmartObject