mirror of
https://github.com/Respect/Validation.git
synced 2024-06-20 06:25:05 +02:00
18 lines
357 B
PHP
18 lines
357 B
PHP
<?php
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
class AttributeException extends AbstractRelatedException
|
|
{
|
|
|
|
public static $defaultTemplates = array(
|
|
'"%2$s" is not present',
|
|
'"%2$s" is invalid',
|
|
);
|
|
|
|
public function chooseTemplate($input, $attributeName, $hasTheAttribute)
|
|
{
|
|
return $hasTheAttribute ? 1 : 0;
|
|
}
|
|
|
|
} |