BadMethodCallException.php
4 years ago
ConstraintDefinitionException.php
4 years ago
ExceptionInterface.php
4 years ago
GroupDefinitionException.php
4 years ago
InvalidArgumentException.php
4 years ago
InvalidOptionsException.php
4 years ago
LogicException.php
4 years ago
MappingException.php
4 years ago
MissingOptionsException.php
4 years ago
NoSuchMetadataException.php
4 years ago
OutOfBoundsException.php
4 years ago
RuntimeException.php
4 years ago
UnexpectedTypeException.php
4 years ago
UnexpectedValueException.php
4 years ago
UnsupportedMetadataException.php
4 years ago
ValidationFailedException.php
4 years ago
ValidatorException.php
4 years ago
index.php
3 years ago
ValidationFailedException.php
24 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Symfony\Component\Validator\Exception; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | use MailPoetVendor\Symfony\Component\Validator\ConstraintViolationListInterface; |
| 5 | class ValidationFailedException extends RuntimeException |
| 6 | { |
| 7 | private $violations; |
| 8 | private $value; |
| 9 | public function __construct($value, ConstraintViolationListInterface $violations) |
| 10 | { |
| 11 | $this->violations = $violations; |
| 12 | $this->value = $value; |
| 13 | parent::__construct($violations); |
| 14 | } |
| 15 | public function getValue() |
| 16 | { |
| 17 | return $this->value; |
| 18 | } |
| 19 | public function getViolations() : ConstraintViolationListInterface |
| 20 | { |
| 21 | return $this->violations; |
| 22 | } |
| 23 | } |
| 24 |