Call
API reference › HTML Core › Config › Call
Represents one ordered immutable cookbook method call.
Immutability is structural: the method name and the ordered argument list cannot change after construction.
Object arguments are stored by reference, so pass immutable values (scalars, enums, readonly objects) when deep
immutability is required.
Properties
Section titled “Properties”| Property | Type | Description | Defined by |
|---|---|---|---|
$arguments readonly | list<mixed> | Arguments passed to the configured method. | Call |
$method readonly constructor | string | Method name to call. | Call |
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Creates a method call with positional arguments. | Call |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $method, mixed ...$arguments)Creates a method call with positional arguments.
Parameters
| Parameter | Type | Description |
|---|---|---|
$method | string | Method name to call. |
...$arguments | mixed | Positional arguments passed to the method. |
Throws
InvalidArgumentException: If the method name is empty or contains whitespace, or if the arguments are passed by name.