1 | <?php |
||
17 | class UserReminderCliController extends AbstractActionController |
||
18 | { |
||
19 | /** |
||
20 | * @var MissingBookingReminderService |
||
21 | */ |
||
22 | private $missingBookingService; |
||
23 | |||
24 | /** |
||
25 | * @param MissingBookingReminderService $missingBookingService |
||
26 | * @param AdapterInterface $console |
||
27 | */ |
||
28 | public function __construct(MissingBookingReminderService $missingBookingService, AdapterInterface $console) |
||
33 | |||
34 | /** |
||
35 | * Remind user's about missing bookings |
||
36 | */ |
||
37 | public function findAndNotifyMissingBookingsAction() |
||
42 | } |
||
43 |
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: