mirror of
https://github.com/Respect/Validation.git
synced 2024-06-28 18:20:07 +02:00
19 lines
426 B
PHP
19 lines
426 B
PHP
<?php
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
class MaxException extends ValidationException
|
|
{
|
|
const INCLUSIVE =1;
|
|
|
|
public static $defaultTemplates = array(
|
|
self::STANDARD => '%s is greater than %s',
|
|
self::INCLUSIVE => '%s is greater than %s (inclusive)',
|
|
);
|
|
|
|
public function chooseTemplate($input, $inclusive)
|
|
{
|
|
return $inclusive ? static::INCLUSIVE : static::STANDARD;
|
|
}
|
|
|
|
} |