mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 10:40:24 +02:00
17 lines
344 B
PHP
17 lines
344 B
PHP
<?php
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
class KeyException extends AbstractRelatedException
|
|
{
|
|
public static $defaultTemplates = array(
|
|
'"%2$s" is not present',
|
|
'"%2$s" is invalid',
|
|
);
|
|
|
|
public function chooseTemplate($input, $attributeName, $theAttribute)
|
|
{
|
|
return $theAttribute ? 0 : 1;
|
|
}
|
|
|
|
} |