Source of file ValidatorInterface.php
Size: 0,788 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/Validator/ValidatorInterface.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 | <?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ declare(strict_types=1); namespace Bluz\Validator; use Bluz\Validator\Exception\ValidatorException; /** * Validator Rule Interface * * @package Bluz\Validator\Rule * @author Anton Shevchuk */ interface ValidatorInterface { /** * Check input data * * @param mixed $input * * @return bool */ public function validate($input): bool; /** * Assert * * @param mixed $input * * @throws ValidatorException */ public function assert($input); /** * Invoke * * @param mixed $input * * @return bool */ public function __invoke($input) : bool; } |