oont-contents/plugins/mailpoet/vendor-prefixed/symfony/validator/Exception/ValidationFailedException.php
2025-02-08 15:10:23 +01:00

23 lines
621 B
PHP

<?php
namespace MailPoetVendor\Symfony\Component\Validator\Exception;
if (!defined('ABSPATH')) exit;
use MailPoetVendor\Symfony\Component\Validator\ConstraintViolationListInterface;
class ValidationFailedException extends RuntimeException
{
private $violations;
private $value;
public function __construct($value, ConstraintViolationListInterface $violations)
{
$this->violations = $violations;
$this->value = $value;
parent::__construct($violations);
}
public function getValue()
{
return $this->value;
}
public function getViolations() : ConstraintViolationListInterface
{
return $this->violations;
}
}