Marks a parameter or property that should be validated at runtime.
Can be used to trigger automatic validation of method parameters.
CloneableInstantiable
- Attributes
Attribute ( 40)
| Properties |
| public readonly ?array $allowedValues |
| public readonly bool $notEmpty |
| public readonly bool $notNull |
| public readonly ?string $type |
| Methods |
| public __construct(?string $type = NULL, bool $notNull = false, bool $notEmpty = false, ?array $allowedValues = NULL) |