Documentation

Enum
in package

Annotation that can be used to signal to the parser to check the available values during the parsing process.

Tags
Annotation
Attributes

({ @Attribute("value", required = true, type = "array"), @Attribute("literal", required = false, type = "array") })

Table of Contents

$literal  : array<string|int, mixed>
Literal target declaration.
$value  : mixed
__construct()  : mixed

Properties

$literal

Literal target declaration.

public array<string|int, mixed> $literal

$value

public mixed $value
Tags
phpstan-var

list

Methods

__construct()

public __construct(array<string|int, mixed> $values) : mixed
Parameters
$values : array<string|int, mixed>
Tags
throws
InvalidArgumentException
phpstan-param

array{literal?: mixed[], value: list} $values

Return values
mixed

Search results