Skip to content

Class ZugferdXsdValidator

HorstOeko edited this page Nov 18, 2024 · 6 revisions

Summary

Class representing the validator against XSD for documents

Methods

__construct

Summary

Constructor

Signature

public function __construct(horstoeko\zugferd\ZugferdDocument $document): void;

Parameters

Name Type Allows Null Description
document horstoeko\zugferd\ZugferdDocument

validate

Summary

Perform validation of document

Signature

public function validate(): \ZugferdXsdValidator;

validationPased

Caution

Deprecated 1.0.65 Use hasNoValidationErrors instead

Summary

Returns true if validation passed otherwise false

Signature

public function validationPased(): bool;

validationFailed

Caution

Deprecated 1.0.65 Use hasValidationErrors instead

Summary

Returns true if validation failed otherwise false

Signature

public function validationFailed(): bool;

hasNoValidationErrors

Summary

Returns true if validation passed otherwise false

Signature

public function hasNoValidationErrors(): bool;

hasValidationErrors

Summary

Returns true if validation errors are present otherwise false

Signature

public function hasValidationErrors(): bool;

validationErrors

Summary

Returns an array of all validation errors

Signature

public function validationErrors(): array;