class final readonly Core · pdftoolkit/pdf 0.12.4

PDF\Specification\Constraint\NameArray
An unordered collection of allowed names; no preference or uniqueness is inferred.

Read the source declaration ↗

Inheritance and contracts

Interfaces : PDF\Specification\DictionaryConstraint

Construction

__construct()

public function __construct(string $key, array $allowed)
@param non-empty-list<string> $allowed

Declared by PDF\Specification\Constraint\NameArray · View the code ↗

Declared methods

validate()

public function validate(PDF\Syntax\Object\DictionaryType $dictionary): void

Declared by PDF\Specification\Constraint\NameArray · View the code ↗

Properties

DeclarationOrigin and documentation
public readonly string $keyPDF\Specification\Constraint\NameArray