Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
40 | 1 | public function get($offerId, $params = array()) |
|
41 | { |
||
42 | 1 | $resource = 'offer/' . $offerId . '.json'; |
|
43 | 1 | $resource .= '?' . $this->buildQueryString($params); |
|
44 | 1 | $response = $this->getServiceResponse($resource); |
|
45 | |||
46 | 1 | $getOfferResponse = new Models\ResponseOfferGet($response); |
|
47 | |||
48 | 1 | return $getOfferResponse; |
|
49 | } |
||
50 | } |
||
51 |