respect-validation/library/Exceptions/TrueValException.php
paul karikari 8aa6426ab1
Apply contribution guidelines to "TrueVal" rule
Also add integration test for TrueVal rule.

Signed-off-by: Paul Karikari <paulkarikari1@gmail.com>
2018-06-15 22:12:17 +02:00

36 lines
842 B
PHP

<?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);
namespace Respect\Validation\Exceptions;
/**
* Exceptions thrown by TrueVal rule.
*
* @author Henrique Moody <henriquemoody@gmail.com>
* @author Paul Karikari <paulkarikari1@gmail.com>
*/
final class TrueValException extends ValidationException
{
/**
* {@inheritdoc}
*/
public static $defaultTemplates = [
self::MODE_DEFAULT => [
self::STANDARD => '{{name}} is not considered as "True"',
],
self::MODE_NEGATIVE => [
self::STANDARD => '{{name}} is considered as "True"',
],
];
}