| Conditions | 3 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3.3332 |
| Changes | 0 | ||
| 1 | <?php |
||
| 53 | 2 | public static function fromArray(array $data) |
|
| 54 | { |
||
| 55 | 2 | if (isset($data['created_at'])) { |
|
| 56 | $data['created_at'] = new \DateTimeImmutable($data['created_at']); |
||
| 57 | } |
||
| 58 | 2 | if (isset($data['updated_at'])) { |
|
| 59 | $data['updated_at'] = new \DateTimeImmutable($data['updated_at']); |
||
| 60 | } |
||
| 61 | |||
| 62 | 2 | return self::fromArrayTrait($data); |
|
| 63 | } |
||
| 65 |