| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | 1 | public static function create(array $payload): self |
|
| 57 | { |
||
| 58 | 1 | $senderId = $payload['sender']['id']; |
|
| 59 | 1 | $recipientId = $payload['recipient']['id']; |
|
| 60 | 1 | $timestamp = $payload['timestamp']; |
|
| 61 | 1 | $passThreadControl = PassThreadControl::create($payload['pass_thread_control']); |
|
| 62 | |||
| 63 | 1 | return new static($senderId, $recipientId, $timestamp, $passThreadControl); |
|
| 64 | } |
||
| 65 | } |
||
| 66 |