Total Complexity | 6 |
Total Lines | 74 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Request extends \UAPAY\Request |
||
8 | { |
||
9 | /** |
||
10 | * @var String |
||
11 | */ |
||
12 | protected $sessionId; |
||
13 | |||
14 | /** |
||
15 | * @var String |
||
16 | */ |
||
17 | protected $id; |
||
18 | |||
19 | /** |
||
20 | * @var String |
||
21 | */ |
||
22 | protected $api_path = '/api/orders/cancel'; |
||
23 | |||
24 | /** |
||
25 | * @var String |
||
26 | */ |
||
27 | protected $response_class = '\UAPAY\Orders\Cancel\Response'; |
||
28 | |||
29 | /** |
||
30 | * Constructor |
||
31 | * |
||
32 | * @param array $options array of options |
||
33 | */ |
||
34 | public function __construct(Array $options) |
||
35 | { |
||
36 | parent::__construct($options); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * get/set sessionId |
||
41 | * |
||
42 | * @param string $value |
||
43 | * @return string |
||
44 | */ |
||
45 | public function sessionId($value=null) |
||
46 | { |
||
47 | if ($value !== null) |
||
48 | { |
||
49 | $this->sessionId = $this->as_string($value); |
||
50 | } |
||
51 | |||
52 | return $this->sessionId; |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * get/set id |
||
57 | * |
||
58 | * @param string $value |
||
59 | * @return string |
||
60 | */ |
||
61 | public function id($value=null) |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * Returns params set |
||
73 | * |
||
74 | * @return array |
||
75 | */ |
||
76 | public function get_params() |
||
84 |