Skip to content
PHP Ecosystem
Explore

DefaultValue

API reference › Model › Attribute › DefaultValue

final readonly classUIAwesome\Model\Attribute\DefaultValue
Sourcesrc/Attribute/DefaultValue.php

Applies a runtime default when assigned input is null or an empty string.

PropertyTypeDescriptionDefined by
$value readonly constructormixedRuntime default value.DefaultValue
MethodDescriptionDefined by
__construct()Configures the value applied to null or empty-string input.DefaultValue
public function __construct(mixed $value)

Configures the value applied to null or empty-string input.

Parameters

ParameterTypeDescription
$valuemixedRuntime default value.