Documentation

EnumConstraint
in package
implements IEnumConstraint

Read onlyYes
FinalYes
Tags
todo

For now, it only works with string-backed enums.

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

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]
Return values
array<int, string>
On this page

Search results