| 1 | <?php |
||
| 17 | class SportProxy extends Proxy implements SportInterface { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * {@inheritdoc} |
||
| 21 | */ |
||
| 22 | public function load() { |
||
| 23 | $this->loadLeagues(); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Lazy loads the leagues for this sport. |
||
| 28 | * |
||
| 29 | * @throws \Exception |
||
| 30 | * When the leagues cannot be loaded. |
||
| 31 | * |
||
| 32 | * @return void |
||
| 33 | */ |
||
| 34 | protected function loadLeagues() { |
||
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 1 | public function getId() { |
|
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritdoc} |
||
| 52 | */ |
||
| 53 | 1 | public function getLeagues() { |
|
| 56 | |||
| 57 | /** |
||
| 58 | * {@inheritdoc} |
||
| 59 | */ |
||
| 60 | 1 | public function getName() { |
|
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritdoc} |
||
| 66 | */ |
||
| 67 | 1 | public function addLeague(LeagueInterface $league) { |
|
| 79 | |||
| 80 | } |
||
| 81 |