2010-10-18 06:26:02 +02:00
|
|
|
<?php
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
|
2013-01-22 21:49:20 +01:00
|
|
|
class DigitException extends AlphaException
|
2010-10-18 06:26:02 +02:00
|
|
|
{
|
2010-12-02 22:04:10 +01:00
|
|
|
public static $defaultTemplates = array(
|
2011-04-10 01:34:21 +02:00
|
|
|
self::MODE_DEFAULT => array(
|
|
|
|
self::STANDARD => '{{name}} must contain only digits (0-9)',
|
2015-01-08 03:15:35 +01:00
|
|
|
self::EXTRA => '{{name}} must contain only digits (0-9) and "{{additionalChars}}"',
|
2011-04-10 01:34:21 +02:00
|
|
|
),
|
|
|
|
self::MODE_NEGATIVE => array(
|
|
|
|
self::STANDARD => '{{name}} must not contain digits (0-9)',
|
2015-01-08 03:15:35 +01:00
|
|
|
self::EXTRA => '{{name}} must not contain digits (0-9) or "{{additionalChars}}"',
|
|
|
|
),
|
2010-10-18 10:18:46 +02:00
|
|
|
);
|
2011-02-10 21:49:48 +01:00
|
|
|
}
|