Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class AbstractResponse implements ErrorInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var \SimpleXMLElement |
||
20 | */ |
||
21 | protected $xml; |
||
22 | |||
23 | public function __construct(\SimpleXMLElement $xml) |
||
26 | } |
||
27 | |||
28 | public function hasError(): bool |
||
29 | { |
||
30 | return (bool) count($this->xml->Error); |
||
31 | } |
||
32 | |||
33 | public function getError(): array |
||
41 | } |
||
42 | } |
||
43 |