Total Complexity | 5 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class Check extends General |
||
18 | { |
||
19 | /** |
||
20 | * @var string 'Account' node |
||
21 | */ |
||
22 | protected $Account; |
||
23 | |||
24 | /** |
||
25 | * Check constructor |
||
26 | * |
||
27 | * @param \EasyPay\Provider31\Request\RAW $raw Raw request data |
||
28 | */ |
||
29 | public function __construct($raw) |
||
30 | { |
||
31 | parent::__construct($raw); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Get Account |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function Account() |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * Parse xml-request, which was previously "extracted" from the body of the http request |
||
46 | * |
||
47 | */ |
||
48 | protected function parse_request_data() |
||
49 | { |
||
50 | parent::parse_request_data(); |
||
51 | |||
52 | $r = $this->raw_request->get_nodes_from_request('Check'); |
||
53 | |||
54 | foreach ($r[0]->childNodes as $child) |
||
55 | { |
||
56 | $this->check_and_parse_request_node($child, 'Account'); |
||
57 | } |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * validate Check request |
||
62 | * |
||
63 | * @param array $options |
||
64 | * @throws Exception\Structure |
||
65 | */ |
||
66 | public function validate_request($options) |
||
71 | } |
||
72 | } |
||
73 |