ELP Parser API

ValidationResult
in package
implements JsonSerializable

FinalYes

Typed wrapper around validation errors and warnings.

Table of Contents

Interfaces

JsonSerializable

Properties

$errors  : array<int, Diagnostic>
$warnings  : array<int, Diagnostic>

Methods

__construct()  : mixed
errors()  : array<int, Diagnostic>
fromArray()  : self
Build from the existing validation array contract.
has()  : bool
isValid()  : bool
jsonSerialize()  : mixed
toArray()  : array<string, mixed>
warnings()  : array<int, Diagnostic>

Properties

Methods

fromArray()

Build from the existing validation array contract.

public static fromArray(array<string, mixed> $data) : self
Parameters
$data : array<string, mixed>

Validation result.

Return values
self

has()

public has(string $code) : bool
Parameters
$code : string
Return values
bool

toArray()

public toArray() : array<string, mixed>
Return values
array<string, mixed>
On this page

Search results