| 1 | <?php |
||
| 10 | class TestMailable extends Mailable |
||
| 11 | { |
||
| 12 | use Queueable, SerializesModels; |
||
| 13 | |||
| 14 | public $recipient; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Create a new message instance. |
||
| 18 | * |
||
| 19 | * @return void |
||
|
|
|||
| 20 | */ |
||
| 21 | public function __construct(String $recipient) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Build the message. |
||
| 28 | * |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | public function build() |
||
| 37 | } |
||
| 38 |
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.