| 1 | <?php |
||
| 14 | class SendConfirmationEmailTask extends Task |
||
| 15 | { |
||
| 16 | |||
| 17 | |||
| 18 | /** |
||
| 19 | * SendConfirmationEmailTask constructor. |
||
| 20 | * |
||
| 21 | * @param \App\Containers\Email\Mails\ConfirmEmail $confirmEmail |
||
| 22 | */ |
||
| 23 | public function __construct(ConfirmEmail $confirmEmail) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param \App\Containers\User\Models\User $user |
||
| 30 | * @param $confirmationUrl |
||
| 31 | * |
||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | public function run(User $user, $confirmationUrl) |
||
| 45 | } |
||
| 46 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: