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