Class ZugferdXsdValidator - horstoeko/zugferd GitHub Wiki
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 | :x: |
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