Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
54 | 6 | public static function create($chatId, $fromChatId, int $messageId, array $data = null): self |
|
55 | { |
||
56 | 6 | $instance = new static(); |
|
57 | 6 | $instance->chatId = $chatId; |
|
58 | 6 | $instance->fromChatId = $fromChatId; |
|
59 | 6 | $instance->messageId = $messageId; |
|
60 | |||
61 | 6 | if ($data) { |
|
62 | 3 | $instance->fill($data); |
|
63 | } |
||
64 | |||
65 | 6 | return $instance; |
|
66 | } |
||
68 |