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