Source of file RuleInterface.php
Size: 0,792 Bytes - Last Modified: 2017-11-08T13:54:24+00:00
/home/travis/build/bluzphp/framework/src/Validator/Rule/RuleInterface.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | <?php /** * Bluz Framework Component * * @copyright Bluz PHP Team * @link https://github.com/bluzphp/framework */ declare(strict_types=1); namespace Bluz\Validator\Rule; use Bluz\Validator\ValidatorInterface; /** * Validator Rule Interface * * @package Bluz\Validator\Rule * @author Anton Shevchuk */ interface RuleInterface extends ValidatorInterface { /** * Cast to string * * @return string */ public function __toString() : string; /** * Get error template * * @return string */ public function getDescription() : string; /** * Set error template * * @param string $description * * @return self */ public function setDescription(string $description) : RuleInterface; } |