respect-validation/library/Exceptions/FactorException.php

31 lines
722 B
PHP
Raw Normal View History

2015-09-06 17:37:08 +02:00
<?php
/*
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
* SPDX-License-Identifier: MIT
2015-09-06 17:37:08 +02:00
*/
declare(strict_types=1);
2015-09-06 17:37:08 +02:00
namespace Respect\Validation\Exceptions;
/**
* @author Danilo Correa <danilosilva87@gmail.com>
2015-09-06 17:37:08 +02:00
* @author David Meister <thedavidmeister@gmail.com>
* @author Henrique Moody <henriquemoody@gmail.com>
2015-09-06 17:37:08 +02:00
*/
final class FactorException extends ValidationException
2015-09-06 17:37:08 +02:00
{
/**
* {@inheritDoc}
*/
protected $defaultTemplates = [
2015-10-18 03:44:47 +02:00
self::MODE_DEFAULT => [
2015-09-06 17:37:08 +02:00
self::STANDARD => '{{name}} must be a factor of {{dividend}}',
2015-10-18 03:44:47 +02:00
],
self::MODE_NEGATIVE => [
2015-09-06 17:37:08 +02:00
self::STANDARD => '{{name}} must not be a factor of {{dividend}}',
2015-10-18 03:44:47 +02:00
],
];
2015-09-06 17:37:08 +02:00
}