| Total Complexity | 7 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class CancelSignatureResult extends AbstractResult |
||
| 11 | { |
||
| 12 | /** @var CancelledDocuments */ |
||
| 13 | private $documents; |
||
| 14 | |||
| 15 | 6 | public function __construct(stdClass $data) |
|
| 16 | { |
||
| 17 | 6 | parent::__construct($data, 'cancel_signatureResult'); |
|
| 18 | 6 | $documents = $this->findInDescendent($data, 'cancel_signatureResult', 'Folios', 'Folio'); |
|
| 19 | 6 | $this->documents = new CancelledDocuments(is_array($documents) ? $documents : []); |
|
| 20 | } |
||
| 21 | |||
| 22 | 4 | public function documents(): CancelledDocuments |
|
| 23 | { |
||
| 24 | 4 | return $this->documents; |
|
| 25 | } |
||
| 26 | |||
| 27 | 4 | public function voucher(): string |
|
| 28 | { |
||
| 29 | 4 | return $this->get('Acuse'); |
|
| 30 | } |
||
| 31 | |||
| 32 | 4 | public function date(): string |
|
| 35 | } |
||
| 36 | |||
| 37 | 4 | public function rfc(): string |
|
| 40 | } |
||
| 41 | |||
| 42 | 6 | public function statusCode(): string |
|
| 45 | } |
||
| 46 | } |
||
| 47 |