| 1 | <?php |
||
| 14 | final class SubscribeSubscriberCommand |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * The subscriber email. |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | public $email; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The subscriber auto verification. |
||
| 25 | * |
||
| 26 | * @var bool |
||
| 27 | */ |
||
| 28 | public $verified; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The validation rules. |
||
| 32 | * |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | public $rules = [ |
||
| 36 | 'email' => 'required|email', |
||
| 37 | ]; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Create a new subscribe subscriber command instance. |
||
| 41 | * |
||
| 42 | * @param string $email |
||
| 43 | * @param bool $verified |
||
| 44 | */ |
||
| 45 | public function __construct($email, $verified = false) |
||
| 50 | } |
||
| 51 |