respect-validation/library/Exceptions/OneOfException.php

30 lines
740 B
PHP
Raw Normal View History

2016-12-04 10:06:32 +01:00
<?php
/*
* This file is part of Respect/Validation.
*
* (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
*
* For the full copyright and license information, please view the "LICENSE.md"
* file that was distributed with this source code.
*/
declare(strict_types=1);
2016-12-04 10:06:32 +01:00
namespace Respect\Validation\Exceptions;
/**
* @author Bradyn Poulsen <bradyn@bradynpoulsen.com>
*/
class OneOfException extends NestedValidationException
{
public static $defaultTemplates = [
self::MODE_DEFAULT => [
self::STANDARD => 'Only one of these rules must pass for {{name}}',
],
self::MODE_NEGATIVE => [
self::STANDARD => 'Only one of these rules must not pass for {{name}}',
],
];
}