| Conditions | 3 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 25 | public static function fromAmazonRequest(array $amazonRequest): self |
||
| 26 | { |
||
| 27 | return new self( |
||
| 28 | uid: $amazonRequest['uid'] ?? null, |
||
| 29 | name: $amazonRequest['name'] ?? null, |
||
| 30 | from: isset($amazonRequest['from']) ? MediaState::tryFrom($amazonRequest['from']) : null, |
||
| 31 | to: isset($amazonRequest['to']) ? MediaState::tryFrom($amazonRequest['to']) : null, |
||
| 32 | utcTime: $amazonRequest['utcTime'] ?? null, |
||
| 33 | ); |
||
| 36 |