Skip to content
PHP Ecosystem
Explore

Cookbook

API reference › HTML Core › Config › Cookbook

final readonly classUIAwesome\Html\Core\Config\Cookbook
ImplementsCountable, IteratorAggregate
Sourcesrc/Config/Cookbook.php

Stores an ordered immutable collection of config calls.

PropertyTypeDescriptionDefined by
$calls readonlylist<Call>Ordered config calls.Cookbook
MethodDescriptionDefined 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
public function __construct(UIAwesome\Html\Core\Config\Call ...$calls)

Creates a cookbook of ordered calls.

Parameters

ParameterTypeDescription
...$callsCallOrdered config calls stored by the cookbook.

Throws

public function count(): int<0, max>

Returns the number of config calls.

Returns

int<0, max>: Number of config calls.

public function getIterator(): Traversable<int, UIAwesome\Html\Core\Config\Call>

Returns an iterator over the ordered config calls.

Returns

Traversable<int, Call>

public function isEmpty(): bool

Whether the cookbook contains no config calls.

Returns

bool: true if the cookbook has no calls, false otherwise.