| 1 | <?php |
||
| 10 | class RedirectRule implements Rule |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The validator instance. |
||
| 14 | * |
||
| 15 | * @var \Illuminate\Contracts\Validation\Factory |
||
| 16 | */ |
||
| 17 | protected $validator; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Create a new rule instance. |
||
| 21 | * |
||
| 22 | * @param \Illuminate\Contracts\Validation\Factory $validator |
||
| 23 | * |
||
| 24 | * @return void |
||
|
|
|||
| 25 | */ |
||
| 26 | public function __construct(Factory $validator) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function passes($attribute, $value) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | public function message() |
||
| 54 | } |
||
| 55 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.