| 1 | <?php namespace GolfLeague\Storage\Team; |
||
| 5 | class EloquentTeamRepository implements TeamRepository |
||
| 6 | { |
||
| 7 | private $team; |
||
| 8 | |||
| 9 | public function __construct(Team $team) |
||
| 13 | |||
| 14 | public function all() |
||
| 22 | |||
| 23 | public function findByYear($year) |
||
| 27 | |||
| 28 | public function create($input) |
||
| 32 | |||
| 33 | public function update($team) |
||
| 39 | |||
| 40 | } |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.