1 | <?php |
||
9 | class OkListener |
||
10 | { |
||
11 | /** |
||
12 | * Create the event listener. |
||
13 | * |
||
14 | * @return void |
||
|
|||
15 | */ |
||
16 | 2 | public function __construct() |
|
20 | |||
21 | /** |
||
22 | * Handle the event. |
||
23 | * |
||
24 | * @param OkEvent $event |
||
25 | * @return void |
||
26 | */ |
||
27 | 2 | public function handle(OkEvent $event) |
|
39 | |||
40 | /** |
||
41 | * @param string $email |
||
42 | */ |
||
43 | 2 | static private function sendCompanyEmail($email) |
|
50 | |||
51 | /** |
||
52 | * @param string $email |
||
53 | * @param \Illuminate\Support\Collection $meetings |
||
54 | */ |
||
55 | static private function sendEmployeeEmail($email, $meetings) |
||
62 | } |
||
63 |
Adding a
@return
annotation 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.