Skip to content

Class ZugferdXsdValidator

HorstOeko edited this page Nov 24, 2024 · 8 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
{
}

Returns

Returns a value of type \ZugferdXsdValidator

validationPased

Caution

Deprecated 1.0.65 Use hasNoValidationErrors instead

Summary

Returns true if validation passed otherwise false

Signature

public function validationPased(): bool
{
}

Returns

Returns a value of type bool

validationFailed

Caution

Deprecated 1.0.65 Use hasValidationErrors instead

Summary

Returns true if validation failed otherwise false

Signature

public function validationFailed(): bool
{
}

Returns

Returns a value of type bool

hasNoValidationErrors

Summary

Returns true if validation passed otherwise false

Signature

public function hasNoValidationErrors(): bool
{
}

Returns

Returns a value of type bool

hasValidationErrors

Summary

Returns true if validation errors are present otherwise false

Signature

public function hasValidationErrors(): bool
{
}

Returns

Returns a value of type bool

validationErrors

Summary

Returns an array of all validation errors

Signature

public function validationErrors(): array
{
}

Returns

Returns a value of type array

Clone this wiki locally