1 | <?php |
||
16 | class SeasonProxy extends Proxy implements SeasonInterface { |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | public function load() { |
||
22 | $this->loadEvents(); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Lazy loads the events for this season. |
||
27 | * |
||
28 | * @throws \Exception |
||
29 | * When the events cannot be loaded. |
||
30 | * |
||
31 | * @return void |
||
32 | */ |
||
33 | protected function loadEvents() { |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | 1 | public function getId() { |
|
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 1 | public function getName() { |
|
56 | |||
57 | /** |
||
58 | * {@inheritdoc} |
||
59 | */ |
||
60 | 1 | public function getEvents() { |
|
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | 1 | public function getLeague() { |
|
70 | |||
71 | } |
||
72 |