mirror of
https://github.com/Respect/Validation.git
synced 2024-06-27 09:40:05 +02:00
da193b75e0
Most changes was made by php-cs-fixer. Also removes unused `RecursiveTreeIterator` class.
21 lines
404 B
PHP
21 lines
404 B
PHP
<?php
|
|
namespace Respect\Validation;
|
|
|
|
/** Interface for validation rules */
|
|
interface Validatable
|
|
{
|
|
public function assert($input);
|
|
|
|
public function check($input);
|
|
|
|
public function getName();
|
|
|
|
public function reportError($input, array $relatedExceptions = array());
|
|
|
|
public function setName($name);
|
|
|
|
public function setTemplate($template);
|
|
|
|
public function validate($input);
|
|
}
|