| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public static function createFromArray(array $data): self |
||
| 24 | { |
||
| 25 | $model = new self(); |
||
| 26 | $model->operationTime = new \DateTimeImmutable($data['operationTime']); |
||
| 27 | $model->registerTime = new \DateTimeImmutable($data['registerTime']); |
||
| 28 | $model->taxPeriodId = $data['taxPeriodId']; |
||
| 29 | $model->comment = $data['comment']; |
||
| 30 | |||
| 31 | return $model; |
||
| 32 | } |
||
| 54 |