FunctionHelper
To be used by XHP that renders functions and methods
Static Properties
| Name | Type | Summary |
|---|---|---|
$primitives | ImmSet<string> | |
$thisy | ImmSet<string> |
Instance Methods
| Returns | Signature and Description |
|---|---|
string | getFilename()Cleans up a filename. |
Page | getPage()Gets a page builder. |
?XHPRoot | getParameters(, ) |
?XHPRoot | getReturns(, ) |
?XHPRoot | getThrows(, ) |
bool | isPrimitive()Gets whether the provided type is primitive. |
bool | isThisy()Gets whether the provided typehint refers to |
bool | isVoid()Gets whether the provided typehint is void. |
Property Details
$primitives
Inherited from Producer
ImmSet<string> $primitives$thisy
Inherited from Producer
ImmSet<string> $thisyMethod Details
getFilename
Inherited from Producer
getFilename(ScannedBase $c)Cleans up a filename.
| Name | Type | Description |
|---|---|---|
$c | ScannedBase | The scanned token |
| Type | Description |
|---|---|
string | The cleaned up filename |
getPage
Inherited from Producer
getPage(string $title)Gets a page builder.
| Name | Type | Description |
|---|---|---|
$title | string | The page title |
| Type | Description |
|---|---|
Page | The page builder |
getParameters
getParameters(FunctionyDeclaration $function, DocParser $mdParser)| Name | Type | Description |
|---|---|---|
$function | FunctionyDeclaration | |
$mdParser | DocParser |
| Type | Description |
|---|---|
?XHPRoot |
getReturns
getReturns(FunctionyDeclaration $function, DocParser $mdParser)| Name | Type | Description |
|---|---|---|
$function | FunctionyDeclaration | |
$mdParser | DocParser |
| Type | Description |
|---|---|
?XHPRoot |
getThrows
getThrows(FunctionyDeclaration $function, DocParser $mdParser)| Name | Type | Description |
|---|---|---|
$function | FunctionyDeclaration | |
$mdParser | DocParser |
| Type | Description |
|---|---|
?XHPRoot |
isPrimitive
Inherited from Producer
isPrimitive(string $type)Gets whether the provided type is primitive.
| Name | Type | Description |
|---|---|---|
$type | string | The type to test |
| Type | Description |
|---|---|
bool |
|
isThisy
Inherited from Producer
isThisy(?ScannedTypehint $type)Gets whether the provided typehint refers to $this
| Name | Type | Description |
|---|---|---|
$type | ?ScannedTypehint | The typehint to test |
| Type | Description |
|---|---|
bool |
|
isVoid
Inherited from Producer
isVoid(?ScannedTypehint $type)Gets whether the provided typehint is void.
| Name | Type | Description |
|---|---|---|
$type | ?ScannedTypehint | The typehint to test |
| Type | Description |
|---|---|
bool |
|