DefaultModifier
Less than 1 minute
DefaultModifier
Returns the default value if the provided value is null.
Methods
run
public run(mixed $value, mixed $default): mixed
Parameters
Parameter | Type | Description |
---|---|---|
$value | mixed | the value to check |
$default | mixed | the default value to return if the provided value is null |
Generated by Hazaar API Doc Generator