Conditions | 4 |
Paths | 4 |
Total Lines | 19 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function handle(AbstractTournamentDrawEvent $event) |
||
24 | { |
||
25 | $tournament = $event->tournament; |
||
26 | |||
27 | switch ($tournament->type) { |
||
|
|||
28 | case Tournament::TYPE_LEAGUE: |
||
29 | $job = new DrawLeague($tournament); |
||
30 | $job->handle(); |
||
31 | break; |
||
32 | |||
33 | case Tournament::TYPE_KNOCK_OUT: |
||
34 | $job = new DrawKnockOut($tournament); |
||
35 | $job->handle(); |
||
36 | break; |
||
37 | case Tournament::TYPE_MULTISTAGE: |
||
38 | throw new \RuntimeException('Not implemented'); |
||
39 | break; |
||
40 | } |
||
41 | } |
||
42 | } |
||
43 |
Since your code implements the magic getter
_get
, this function will be called for any read access on an undefined variable. You can add the@property
annotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.