We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 10 | class UserCreated extends Mailable |
||
| 11 | { |
||
| 12 | use Queueable, SerializesModels; |
||
| 13 | |||
| 14 | protected $user; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Create a new message instance. |
||
| 18 | * |
||
| 19 | * @return void |
||
|
|
|||
| 20 | */ |
||
| 21 | public function __construct(User $user) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Build the message. |
||
| 28 | * |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | public function build() |
||
| 40 | } |
||
| 41 |
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.