2018-09-06 22:04:52 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
2023-02-17 05:13:51 +01:00
|
|
|
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
|
|
|
|
* SPDX-License-Identifier: MIT
|
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
|
|
|
}
|
|
|
|
}
|