SearchMarketBookExample::searchWithExBestOffer()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 9.7333
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
use Betfair\BetfairFactory;
4
use Betfair\Model\PriceProjection;
5
6
7
class SearchMarketBookExample
8
{
9
10
    public function searchWithExBestOffer($appKey, $username, $pwd)
11
    {
12
        $betfair = BetfairFactory::createBetfair($appKey, $username, $pwd);
13
14
        $marketBookBetfair = $betfair->getBetfairMarketBook();
15
16
        $priceProjection = new PriceProjection(array(\Betfair\Model\PriceData::EX_BEST_OFFERS));
17
18
        $marketBookBetfair
19
            ->withPriceProjection($priceProjection)
20
            ->withMarketIds(array(1.117549116));
21
22
        $results = $marketBookBetfair->getResults();
23
24
        return $results;
25
    }
26
}
27