Modifier
Less than 1 minute
Modifier
Properties
loadedModifiers
private array $loadedModifiers
Methods
execute
Executes a modifier function by its name with the provided value and arguments.
public execute(string $name, mixed $value, mixed $args): mixed
Parameters
Parameter | Type | Description |
---|---|---|
$name | string | the name of the modifier function to execute |
$value | mixed | the value to be passed to the modifier function |
$args | mixed |
runWithArgs
Executes a modifier with the provided arguments.
public runWithArgs(string $name, mixed $value, mixed $args): mixed
Arguments are passed to the modifier in the order they are provided and are cast to the type expected by the modifier.
Parameters
Parameter | Type | Description |
---|---|---|
$name | string | the name of the modifier to run |
$value | mixed | the initial value to pass to the modifier |
$args | mixed |
Generated by Hazaar API Doc Generator