FileDeclaration
A declared file.
Constructors / Destructors
Returns | Signature and Description |
---|---|
void | __construct ( , )Creates a new FileDeclaration. |
Instance Methods
Returns | Signature and Description |
---|---|
Block | Gets the doc comment block. |
string | Gets the source filename. |
Method Details
__construct
public function
__construct
(string
$filename
, Block
$block
)Creates a new FileDeclaration.
Name | Type | Description |
---|---|---|
$filename | string | The filename |
$block | Block | The doc comment |
getDocBlock
public function
getDocBlock
()Gets the doc comment block.
Type | Description |
---|---|
Block | The doc block, which could be empty |
getFilename
public function
getFilename
()Gets the source filename.
Type | Description |
---|---|
string | The filename |