mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
20 lines
No EOL
457 B
PHP
20 lines
No EOL
457 B
PHP
<?php
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
class EqualsException extends ValidationException
|
|
{
|
|
const EQUALS = 0;
|
|
const IDENTICAL = 0;
|
|
|
|
public static $defaultTemplates = array(
|
|
self::EQUALS => '"%s" is not equals "%s"',
|
|
self::IDENTICAL => '"%s" is not identical to "%s"',
|
|
);
|
|
|
|
public function chooseTemplate($input, $equals, $identical)
|
|
{
|
|
return ($identical) ? static::IDENTICAL : static::EQUALS;
|
|
}
|
|
|
|
} |