| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public static function createBetfair($applicationId, $betfairUsername, $betfairPassword, $options = array()) |
||
| 12 | { |
||
| 13 | $credential = new Credential($applicationId, $betfairUsername, $betfairPassword); |
||
| 14 | $factory = new BetfairGuzzleClientFactory(__DIR__."/Resources/specification"); |
||
| 15 | $betfairClient = new BetfairClient($credential, $factory->createBetfairGuzzleClient($options)); |
||
| 16 | |||
| 17 | $responseAdapter = null; |
||
| 18 | |||
| 19 | if (isset($options["responseAdapter"])) { |
||
| 20 | $responseAdapter = $options["responseAdapter"]; |
||
| 21 | } |
||
| 22 | |||
| 23 | return new Betfair($betfairClient, $responseAdapter); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |