| 1 | <?php |
||
| 13 | class Reset |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var TournamentModel |
||
| 17 | */ |
||
| 18 | protected $tournament; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create the event listener. |
||
| 22 | * Reset constructor. |
||
| 23 | */ |
||
| 24 | public function __construct() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Handle the event. |
||
| 31 | * |
||
| 32 | * @param TournamentWasReset $event |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | public function handle(TournamentWasReset $event) |
||
| 41 | |||
| 42 | protected function reset() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return mixed |
||
| 49 | */ |
||
| 50 | protected function cleanupMatches() |
||
| 54 | } |
||
| 55 |
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@propertyannotation 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.