mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 23:59:51 +01:00
19 lines
No EOL
471 B
PHP
19 lines
No EOL
471 B
PHP
<?php
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
class AlphaException extends ValidationException
|
|
{
|
|
const EXTRA = 1;
|
|
|
|
public static $defaultTemplates = array(
|
|
self::STANDARD => '"%s" does not contain only letters',
|
|
self::EXTRA => '"%s" does not contain only letters and "%s"'
|
|
);
|
|
|
|
public function chooseTemplate($input, $additionalCharacters=null)
|
|
{
|
|
return empty($additionalCharacters) ? static::NORMAL : static::EXTRA;
|
|
}
|
|
|
|
} |