mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
19 lines
573 B
PHP
19 lines
573 B
PHP
<?php
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
class KeyException extends AttributeException
|
|
{
|
|
|
|
public static $defaultTemplates = array(
|
|
self::MODE_DEFAULT => array(
|
|
self::NOT_PRESENT => 'Key {{reference}} must be present on {{name}}',
|
|
self::INVALID => 'Key {{reference}} must be valid on {{name}}',
|
|
),
|
|
self::MODE_NEGATIVE => array(
|
|
self::NOT_PRESENT => 'Key {{reference}} must not be present on {{name}}',
|
|
self::INVALID => 'Key {{reference}} must not be valid on {{name}}',
|
|
)
|
|
);
|
|
|
|
}
|