mirror of
https://github.com/Respect/Validation.git
synced 2024-06-04 14:52:17 +02:00
18 lines
504 B
PHP
18 lines
504 B
PHP
<?php
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
class KeyException extends AttributeException
|
|
{
|
|
public static $defaultTemplates = array(
|
|
self::MODE_DEFAULT => array(
|
|
self::NOT_PRESENT => 'Key {{name}} must be present',
|
|
self::INVALID => 'Key {{name}} must be valid',
|
|
),
|
|
self::MODE_NEGATIVE => array(
|
|
self::NOT_PRESENT => 'Key {{name}} must not be present',
|
|
self::INVALID => 'Key {{name}} must not be valid',
|
|
),
|
|
);
|
|
}
|