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