| 1 | <?php |
||
| 7 | class Betting extends BaseApi |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Betfair API endpoint for betting subsystem requests |
||
| 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) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Ensure that a filter parameter is passed where mandatory |
||
| 30 | */ |
||
| 31 | protected function filter() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Ensure that a maxRecord parameter is passed where mandatory |
||
| 50 | */ |
||
| 51 | protected function maxRecords() |
||
| 57 | } |
||
| 58 |