| Conditions | 6 |
| Paths | 8 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | */ |
||
| 12 | const ENDPOINT = 'https://api.betfair.com/exchange/betting/rest/v1.0/'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Prepare parameters for API requests, ensuring the mandatory requirments are satisfied |
||
| 16 | * |
||
| 17 | * @param array $params |
||
| 18 | */ |
||
| 19 | public function prepare($params) |
||
| 20 | { |
||
| 21 | $this->params = !empty($params) ? $params[ 0 ] : [ ]; |
||
| 22 | |||
| 23 | // force mandatory fields |
||
| 24 | $this->filter(); |
||
| 25 | $this->maxRecords(); |
||
| 26 | } |
||
| 58 |