| Total Complexity | 6 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | final class CancellationInfoType implements CreatableFromArray |
||
| 12 | { |
||
| 13 | private \DateTimeImmutable $operationTime; |
||
| 14 | private \DateTimeImmutable $registerTime; |
||
| 15 | private int $taxPeriodId; |
||
| 16 | private string $comment; |
||
| 17 | |||
| 18 | private function __construct() {} |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @throws \Exception |
||
| 22 | */ |
||
| 23 | public static function createFromArray(array $data): self |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getOperationTime(): \DateTimeImmutable |
||
| 35 | { |
||
| 36 | return $this->operationTime; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getRegisterTime(): \DateTimeImmutable |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getTaxPeriodId(): int |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getComment(): string |
||
| 54 |