PhpFile
class PhpFile extends Object
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
setDocuments(array $documents)
No description
string[]
getDocuments()
No description
addDocument($document)
No description
addInterface($name)
No description
addNamespace($name)
No description
string
__toString()
No description
Details
at line 35
PhpFile
setComment($val)
No description
at line 45
string|null
getComment()
No description
at line 55
PhpFile
addComment($val)
No description
at line 65
PhpFile
setDocuments(array $documents)
No description
at line 75
string[]
getDocuments()
No description
at line 85
PhpFile
addDocument($document)
No description
at line 96
ClassType
addClass($name)
No description
at line 108
ClassType
addInterface($name)
No description
at line 120
ClassType
addTrait($name)
No description
at line 132
PhpNamespace
addNamespace($name)
No description
at line 144
string
__toString()
No description