CoreFiles by mySites.guru
ValidationFailedException.php43 lines, 1,004 bytes, from Joomla_5.3.2-Stable-Full_Package.zip
Raw History Compare with 5.3.1
md5
c0c6d08fefd49de61d41f1c6c70f4ed2
sha1
229e0b78acaa22a5d14e902bd2772f372212184b
sha256
a8f9a5b9afa695a2f343b2c4cd0ffd92faf8ea7bbc8f147e650d4042632033ad
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Validator\Exception;

use Symfony\Component\Validator\ConstraintViolationListInterface;

/**
 * @author Jan Vernieuwe <[email protected]>
 */
class ValidationFailedException extends RuntimeException
{
    private ConstraintViolationListInterface $violations;
    private mixed $value;

    public function __construct(mixed $value, ConstraintViolationListInterface $violations)
    {
        $this->violations = $violations;
        $this->value = $value;
        parent::__construct($violations);
    }

    /**
     * @return mixed
     */
    public function getValue()
    {
        return $this->value;
    }

    public function getViolations(): ConstraintViolationListInterface
    {
        return $this->violations;
    }
}

The same content is in 136 releases, Joomla 5.1.0-beta1 to 6.3.0-alpha1. See them all, or every version of this file.