Cookbook
API reference › HTML Core › Config › Cookbook
Stores an ordered immutable collection of config calls.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$calls readonly | list<Call> | Ordered config calls. | Cookbook |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a cookbook of ordered calls. | Cookbook |
count() | Returns the number of config calls. | Cookbook |
getIterator() | Returns an iterator over the ordered config calls. | Cookbook |
isEmpty() | Whether the cookbook contains no config calls. | Cookbook |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(UIAwesome\Html\Core\Config\Call ...$calls)Creates a cookbook of ordered calls.
Parameters
| Parameter | Type | Description |
|---|---|---|
...$calls | Call | Ordered config calls stored by the cookbook. |
Throws
InvalidArgumentException: If the calls are passed by name.
count()
Section titled “count() ”public function count(): int<0, max>Returns the number of config calls.
Returns
int<0, max>: Number of config calls.
getIterator()
Section titled “getIterator() ”public function getIterator(): Traversable<int, UIAwesome\Html\Core\Config\Call>Returns an iterator over the ordered config calls.
Returns
Traversable<int, Call>
isEmpty()
Section titled “isEmpty() ”public function isEmpty(): boolWhether the cookbook contains no config calls.
Returns
bool: true if the cookbook has no calls, false otherwise.