Modifier
Less than 1 minute
Modifier
class ModifierProperties
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 Tue, 21 Apr 2026 04:00:24 +0000