Skip to content

API reference / Quittio \ Core \ Validation

ValidationDriver

interface in quittio/core

Quittio\Core\Validation\ValidationDriver · Source

A validation driver checks one or more levels (PHP rules, XSD, KoSIT, veraPDF, …).

Methods#

MethodDescription
->levels()
->name()
->supports()Whether the driver can run for the subject (e.g. XML drivers need generated XML).
->validate()

levels()#

public function levels(): list<ValidationLevel>
Returns
list<ValidationLevel>

name()#

public function name(): string
Returns
string

supports()#

public function supports(ValidationSubject $subject): bool

Whether the driver can run for the subject (e.g. XML drivers need generated XML).

ParameterTypeDescription
$subjectValidationSubject
Returns
bool

validate()#

public function validate(ValidationSubject $subject): ValidationResult
ParameterTypeDescription
$subjectValidationSubject
Returns
ValidationResult

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.