Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
68 | public static function create(array $payload) |
||
69 | { |
||
70 | $senderId = $payload['sender']['id']; |
||
71 | $recipientId = $payload['recipient']['id']; |
||
72 | $timestamp = $payload['timestamp']; |
||
73 | $gamePlay = GamePlay::create($payload['game_play']); |
||
74 | |||
75 | return new static($senderId, $recipientId, $timestamp, $gamePlay); |
||
76 | } |
||
78 |