| Conditions | 5 |
| Paths | 5 |
| Total Lines | 15 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function getLoteria($loteria) |
||
| 24 | { |
||
| 25 | switch ($loteria) { |
||
| 26 | case 'megasena': |
||
| 27 | return new XmlMegasena($this->config['path'], $this->config['datasource']); |
||
| 28 | case 'quina': |
||
| 29 | return new XmlQuina($this->config['path'], $this->config['datasource']); |
||
| 30 | case 'lotofacil': |
||
| 31 | return new XmlLotofacil($this->config['path'], $this->config['datasource']); |
||
| 32 | case 'lotomania': |
||
| 33 | return new XmlLotomania($this->config['path'], $this->config['datasource']); |
||
| 34 | default: |
||
| 35 | throw new InvalidArgumentException(); |
||
| 36 | } |
||
| 37 | } |
||
| 38 | } |
||
| 39 |