| 1 | <?php |
||
| 10 | class BugMail extends Mailable implements ShouldQueue |
||
| 11 | { |
||
| 12 | use Queueable, SerializesModels; |
||
| 13 | |||
| 14 | public $view; |
||
| 15 | public $subject; |
||
| 16 | public $body; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Create a new message instance. |
||
| 20 | * |
||
| 21 | * @param Illuminate\View\View $view |
||
| 22 | * @param string $subject |
||
| 23 | * @param string $body |
||
| 24 | * |
||
| 25 | * @return void |
||
|
|
|||
| 26 | */ |
||
| 27 | public function __construct($view, $subject, $body) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Build the message. |
||
| 36 | * |
||
| 37 | * @return $this |
||
| 38 | */ |
||
| 39 | public function build() |
||
| 44 | } |
||
| 45 |
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.