Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace GolfLeague\Services; |
||
24 | public function __construct(MatchRepository $matchRepo, |
||
25 | HoleScoreRepo $holeScoreRepo, |
||
26 | Player $player, |
||
27 | Match $match, |
||
28 | Dispatcher $events) |
||
29 | { |
||
30 | $this->matchRepo = $matchRepo; |
||
31 | $this->holeScoreRepo = $holeScoreRepo; |
||
32 | $this->player = $player; |
||
33 | $this->match = $match; |
||
34 | $this->events = $events; |
||
35 | } |
||
36 | |||
42 |
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.