Modifier
Less than 1 minute
Modifier
Properties
loadedModifiers
private array $loadedModifiersMethods
execute
Executes a modifier function by its name with the provided value and arguments.
public execute(string $name, mixed $value, mixed $args): mixedParameters
| 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): mixedArguments 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 on Mon, 27 Oct 2025 13:01:29 +0000