FunctionDeclaration
A declared namespace function.
- Copyright
- 2016 Appertly
- License
- Apache-2.0
Constructors / Destructors
Returns | Signature and Description |
---|---|
void | __construct ( , )Creates a new MethodDeclaration. |
Instance Methods
Returns | Signature and Description |
---|---|
Block | Gets the doc comment block. |
string | Gets the source filename. |
string | getName ()Gets the name of the declaration. |
ConstMap <string ,ParameterTag > | Gets the parameter tags. |
? TypedTag | Gets the returns tag. |
ConstVector <TypedTag > | Gets the list of exceptions thrown. |
ScannedFunction | getToken ()Gets the scanned token. |
Method Details
__construct
public function
__construct
(ScannedFunction
$function
, Block
$block
)Creates a new MethodDeclaration.
Name | Type | Description |
---|---|---|
$function | ScannedFunction | The method |
$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 |
getName
public function
getName
()Gets the name of the declaration.
Type | Description |
---|---|
string | The declaration name |
getParameterTags
public function
getParameterTags
()Gets the parameter tags.
Type | Description |
---|---|
ConstMap <string ,ParameterTag > | The parameter tags |
getReturnsTag
public function
getReturnsTag
()Gets the returns tag.
Type | Description |
---|---|
? TypedTag | The return tag |
getThrowsTags
public function
getThrowsTags
()Gets the list of exceptions thrown.
Type | Description |
---|---|
ConstVector <TypedTag > | The throws tags |
getToken
public function
getToken
()Gets the scanned token.
Type | Description |
---|---|
ScannedFunction | The scanned token |