2018-09-06 22:04:52 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file is part of Respect/Validation.
|
|
|
|
*
|
2023-02-13 05:59:06 +01:00
|
|
|
* (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
|
2018-09-06 22:04:52 +02:00
|
|
|
*
|
2019-05-23 16:21:34 +02:00
|
|
|
* For the full copyright and license information, please view the LICENSE file
|
|
|
|
* that was distributed with this source code.
|
2018-09-06 22:04:52 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Henrique Moody <henriquemoody@gmail.com>
|
|
|
|
*/
|
|
|
|
class FilteredValidationException extends ValidationException
|
|
|
|
{
|
|
|
|
public const EXTRA = 'extra';
|
|
|
|
|
|
|
|
/**
|
2019-04-05 14:33:00 +02:00
|
|
|
* {@inheritDoc}
|
2018-09-06 22:04:52 +02:00
|
|
|
*/
|
|
|
|
protected function chooseTemplate(): string
|
|
|
|
{
|
2019-02-09 12:07:38 +01:00
|
|
|
return $this->getParam('additionalChars') ? self::EXTRA : self::STANDARD;
|
2018-09-06 22:04:52 +02:00
|
|
|
}
|
|
|
|
}
|