1 | <?php |
||
12 | class TeamMatchHandler |
||
13 | { |
||
14 | /** |
||
15 | * Create a new instance of the TeamMatchHandler |
||
16 | * |
||
17 | * @param |
||
18 | * @return void |
||
|
|||
19 | */ |
||
20 | public function __construct() |
||
24 | |||
25 | /** |
||
26 | * Create an initial round for each player after a new match is created |
||
27 | * |
||
28 | * @param Match $match |
||
29 | * @return void |
||
30 | */ |
||
31 | public function handle($match) |
||
36 | |||
37 | /** |
||
38 | * Register the listeners for the subscriber. |
||
39 | * |
||
40 | * @param Illuminate\Events\Dispatcher $events |
||
41 | * @return array |
||
42 | */ |
||
43 | public function subscribe($events) |
||
47 | } |
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.