Total Complexity | 7 |
Total Lines | 71 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class CreateOrderMethod extends AbstractMethod |
||
18 | { |
||
19 | /** |
||
20 | * Get Order Endpoint |
||
21 | */ |
||
22 | const ENDPOINT = '/orders'; |
||
23 | |||
24 | /** |
||
25 | * @var Order |
||
26 | */ |
||
27 | protected $order; |
||
28 | |||
29 | /** |
||
30 | * @param Order $order |
||
31 | * |
||
32 | * @return $this |
||
33 | */ |
||
34 | public function setOrder(Order $order) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return $this|AbstractMethod |
||
43 | * @throws \Httpful\Exception\ConnectionErrorException |
||
44 | * @throws ClientException |
||
45 | * @throws \Pagantis\OrdersApiClient\Exception\HttpException |
||
46 | */ |
||
47 | public function call() |
||
54 | } |
||
55 | |||
56 | /** |
||
57 | * @return bool|Order |
||
58 | * |
||
59 | * @throws \Exception |
||
60 | */ |
||
61 | public function getOrder() |
||
71 | } |
||
72 | |||
73 | /** |
||
74 | * prepareRequest |
||
75 | * |
||
76 | */ |
||
77 | protected function prepareRequest() |
||
92 |