1 | <?php declare(strict_types=1); |
||
7 | class XMLResponse implements IResponse |
||
8 | { |
||
9 | |||
10 | /** @var SimpleXMLElement */ |
||
11 | private $xml; |
||
12 | |||
13 | |||
14 | public function __construct(string $xml) |
||
18 | |||
19 | |||
20 | public function isOk(): bool |
||
24 | |||
25 | |||
26 | /** |
||
27 | * READ XML **************************************************************** |
||
28 | * ************************************************************************* |
||
29 | */ |
||
30 | |||
31 | public function getXml(): SimpleXMLElement |
||
35 | |||
36 | |||
37 | public function code(): int |
||
41 | |||
42 | |||
43 | public function getIdInstruction() |
||
47 | |||
48 | |||
49 | public function status(): string |
||
53 | |||
54 | |||
55 | public function errorMessages(): array |
||
71 | |||
72 | |||
73 | private function getValue(string $path): string |
||
78 | |||
79 | |||
80 | public function saveXML(string $fileName): void |
||
84 | |||
85 | |||
86 | public function __toString() |
||
90 | |||
91 | } |
||
92 |