| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 44 | 1 | public static function create($chatId, $fromChatId, int $messageId, array $data = null): CopyMessageMethod |
|
| 45 | { |
||
| 46 | 1 | $instance = new static(); |
|
| 47 | 1 | $instance->chatId = $chatId; |
|
| 48 | 1 | $instance->fromChatId = $fromChatId; |
|
| 49 | 1 | $instance->messageId = $messageId; |
|
| 50 | |||
| 51 | 1 | if (!empty($data)) { |
|
| 52 | 1 | $instance->fill($data); |
|
| 53 | } |
||
| 54 | |||
| 55 | 1 | return $instance; |
|
| 56 | } |
||
| 58 |