Template Sloth
|
Public Member Functions | |
__construct (string $slot_name, Sloth $sloth) | |
add (int $weight, string $template, array $arguments=[]) | |
Add a fragment into the slot queue. More... | |
isEmpty () | |
Returns true if slot is empty. More... | |
nextFragment () | |
Returns the fragment on top of the queue and removes it (shifts up). More... | |
Protected Attributes | |
$sloth | |
$slot_name | |
$fragmentQueue | |
$serial = 1 | |
__construct | ( | string | $slot_name, |
Sloth | $sloth | ||
) |
add | ( | int | $weight, |
string | $template, | ||
array | $arguments = [] |
||
) |
Add a fragment into the slot queue.
isEmpty | ( | ) |
Returns true if slot is empty.
nextFragment | ( | ) |
Returns the fragment on top of the queue and removes it (shifts up).
When queue is empty, null is returned.
|
protected |
|
protected |
|
protected |
|
protected |