Producer
Contains helper methods for anything which generates content.
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. |
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
static protected
ImmSet
<string
>
$primitives
$thisy
static protected
ImmSet
<string
>
$thisy
Method Details
getFilename
protected function
getFilename
(ScannedBase
$c
)Cleans up a filename.
Name | Type | Description |
---|---|---|
$c | ScannedBase | The scanned token |
Type | Description |
---|---|
string | The cleaned up filename |
getPage
protected function
getPage
(string
$title
)Gets a page builder.
Name | Type | Description |
---|---|---|
$title | string | The page title |
Type | Description |
---|---|
Page | The page builder |
isPrimitive
protected function
isPrimitive
(string
$type
)Gets whether the provided type is primitive.
Name | Type | Description |
---|---|---|
$type | string | The type to test |
Type | Description |
---|---|
bool |
|
isThisy
protected function
isThisy
(?
ScannedTypehint
$type
)Gets whether the provided typehint refers to $this
Name | Type | Description |
---|---|---|
$type | ? ScannedTypehint | The typehint to test |
Type | Description |
---|---|
bool |
|
isVoid
protected function
isVoid
(?
ScannedTypehint
$type
)Gets whether the provided typehint is void.
Name | Type | Description |
---|---|---|
$type | ? ScannedTypehint | The typehint to test |
Type | Description |
---|---|
bool |
|