EnumConstraint
in package
implements
IEnumConstraint
Read onlyYes
FinalYes
Tags
Table of Contents
Interfaces
- IEnumConstraint
- Instantiations of implementations correspond to a set of acceptable PHP values.
Properties
- $values : array<int, string>
Methods
- __construct() : mixed
- getValues() : array<int, string>
Properties
$values
private
array<int, string>
$values
Methods
__construct()
public
__construct(array<int, BackedEnum> $enumCases) : mixed
Parameters
- $enumCases : array<int, BackedEnum>
-
List of permitted values.
getValues()
public
getValues() : array<int, string>
Attributes
- #[Override]