Documentation

StringEnumConstraint
in package
implements IEnumConstraint

Read onlyYes
FinalYes

Table of Contents

Interfaces

IEnumConstraint
Instantiations of implementations correspond to a set of acceptable PHP values.

Properties

$allowedValues  : array<string|int, mixed>

Methods

__construct()  : mixed
getValues()  : array<int, string>

Properties

Methods

__construct()

public __construct(array<int, string> $allowedValues) : mixed
Parameters
$allowedValues : array<int, string>

List of permitted values.

getValues()

public getValues() : array<int, string>
Attributes
#[Override]
Return values
array<int, string>

$allowedValues List of permitted string values.

On this page

Search results