| 1 | <?php |
||
| 15 | class MatchHandler |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Create a new instance of the MatchHandler |
||
| 19 | * |
||
| 20 | * @param GolfLeague\Storage\Round\RoundRepository $roundRepo |
||
| 21 | * @return void |
||
|
|
|||
| 22 | */ |
||
| 23 | public function __construct(RoundRepository $roundRepo) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create an initial round for each player after a new match is created |
||
| 30 | * |
||
| 31 | * @param Match $match |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | public function handle($match) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Register the listeners for the subscriber. |
||
| 58 | * |
||
| 59 | * @param Illuminate\Events\Dispatcher $events |
||
| 60 | * @return array |
||
| 61 | */ |
||
| 62 | public function subscribe($events) |
||
| 66 | } |
||
| 67 |
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.