respect-validation/library/Exceptions/IdenticalException.php

29 lines
625 B
PHP
Raw Normal View History

2015-10-13 18:27:49 +02:00
<?php
/*
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
* SPDX-License-Identifier: MIT
2015-10-13 18:27:49 +02:00
*/
declare(strict_types=1);
2015-10-13 18:27:49 +02:00
namespace Respect\Validation\Exceptions;
/**
* @author Henrique Moody <henriquemoody@gmail.com>
*/
final class IdenticalException extends ValidationException
2015-10-13 18:27:49 +02:00
{
/**
* {@inheritDoc}
*/
protected $defaultTemplates = [
2015-10-18 03:44:47 +02:00
self::MODE_DEFAULT => [
2015-10-13 18:27:49 +02:00
self::STANDARD => '{{name}} must be identical as {{compareTo}}',
2015-10-18 03:44:47 +02:00
],
self::MODE_NEGATIVE => [
2015-10-13 18:27:49 +02:00
self::STANDARD => '{{name}} must not be identical as {{compareTo}}',
2015-10-18 03:44:47 +02:00
],
];
2015-10-13 18:27:49 +02:00
}