| Total Complexity | 12 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class StampingAlert |
||
| 10 | { |
||
| 11 | /** @var stdClass */ |
||
| 12 | private $data; |
||
| 13 | |||
| 14 | 16 | public function __construct(stdClass $raw) |
|
| 15 | { |
||
| 16 | 16 | $this->data = $raw; |
|
| 17 | 16 | } |
|
| 18 | |||
| 19 | 11 | private function get(string $keyword): string |
|
| 20 | { |
||
| 21 | 11 | return strval($this->data->{$keyword} ?? ''); |
|
| 22 | } |
||
| 23 | |||
| 24 | 4 | public function id(): string |
|
| 27 | } |
||
| 28 | |||
| 29 | 3 | public function uuid(): string |
|
| 30 | { |
||
| 31 | 3 | return $this->get('Uuid'); |
|
| 32 | } |
||
| 33 | |||
| 34 | 10 | public function errorCode(): string |
|
| 37 | } |
||
| 38 | |||
| 39 | 3 | public function workProcessId(): string |
|
| 42 | } |
||
| 43 | |||
| 44 | 3 | public function message(): string |
|
| 47 | } |
||
| 48 | |||
| 49 | 2 | public function extraInfo(): string |
|
| 50 | { |
||
| 51 | 2 | return $this->get('ExtraInfo'); |
|
| 52 | } |
||
| 53 | |||
| 54 | 3 | public function rfc(): string |
|
| 55 | { |
||
| 56 | 3 | return $this->get('RfcEmisor'); |
|
| 57 | } |
||
| 58 | |||
| 59 | 3 | public function certificatePac(): string |
|
| 62 | } |
||
| 63 | |||
| 64 | 3 | public function date(): string |
|
| 67 | } |
||
| 68 | |||
| 69 | /** @return array<mixed> */ |
||
| 70 | 2 | public function values(): array |
|
| 75 |