| @@ -1,27 +1,27 @@ | ||
| 1 | -<?php | |
| 2 | -namespace Booktics\Validation\Rules; | |
| 3 | - | |
| 4 | -/** | |
| 5 | - * Rule interface | |
| 6 | - */ | |
| 7 | -interface Rule { | |
| 8 | - /** | |
| 9 | - * Check the validation rule passed or not | |
| 10 | - * | |
| 11 | - * @param string $field | |
| 12 | - * | |
| 13 | - * @param string $value | |
| 14 | - * | |
| 15 | - * @return bool | |
| 16 | - */ | |
| 17 | - public function passes( $field, $value ); | |
| 18 | - | |
| 19 | - /** | |
| 20 | - * Set message for validation | |
| 21 | - * | |
| 22 | - * @param string $field | |
| 23 | - * | |
| 24 | - * @return string | |
| 25 | - */ | |
| 26 | - public function message( $field ); | |
| 27 | -} | |
| 1 | +<?php | |
| 2 | +namespace Booktics\Validation\Rules; | |
| 3 | + | |
| 4 | +/** | |
| 5 | + * Rule interface | |
| 6 | + */ | |
| 7 | +interface Rule { | |
| 8 | + /** | |
| 9 | + * Check the validation rule passed or not | |
| 10 | + * | |
| 11 | + * @param string $field | |
| 12 | + * | |
| 13 | + * @param string $value | |
| 14 | + * | |
| 15 | + * @return bool | |
| 16 | + */ | |
| 17 | + public function passes( $field, $value ); | |
| 18 | + | |
| 19 | + /** | |
| 20 | + * Set message for validation | |
| 21 | + * | |
| 22 | + * @param string $field | |
| 23 | + * | |
| 24 | + * @return string | |
| 25 | + */ | |
| 26 | + public function message( $field ); | |
| 27 | +} | |