Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (array $errors) | |
isValid () | |
getErrors () | |
ValidationResult object supposed to be created by dedicated validator service which makes a validation and checks whether all entity invariants (business rules that always should be fulfilled) are valid.
ValidationResult represents a container storing all the validation errors that happened during the entity validation.
@api
Definition at line 16 of file ValidationResult.php.
__construct | ( | array | $errors | ) |
array | $errors |
Definition at line 26 of file ValidationResult.php.
getErrors | ( | ) |
Definition at line 42 of file ValidationResult.php.
isValid | ( | ) |
Definition at line 34 of file ValidationResult.php.