Skip to content
PHP Ecosystem
Explore

Call

API reference › HTML Core › Config › Call

final readonly classUIAwesome\Html\Core\Config\Call
Sourcesrc/Config/Call.php

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.

PropertyTypeDescriptionDefined by
$arguments readonlylist<mixed>Arguments passed to the configured method.Call
$method readonly constructorstringMethod name to call.Call
MethodDescriptionDefined by
__construct()Creates a method call with positional arguments.Call
public function __construct(string $method, mixed ...$arguments)

Creates a method call with positional arguments.

Parameters

ParameterTypeDescription
$methodstringMethod name to call.
...$argumentsmixedPositional arguments passed to the method.

Throws