| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class CopyMessageMethod implements HasParseModeVariableInterface, MethodInterface |
||
| 20 | { |
||
| 21 | use FillFromArrayTrait; |
||
| 22 | use SendToChatVariablesTrait; |
||
| 23 | use CaptionVariablesTrait; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Unique identifier for the chat where the original |
||
| 27 | * message was sent (or channel username in the format @channelusername). |
||
| 28 | * |
||
| 29 | * @var int|string |
||
| 30 | */ |
||
| 31 | public $fromChatId; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Message identifier in the chat specified in from_chat_id. |
||
| 35 | * |
||
| 36 | * @var int |
||
| 37 | */ |
||
| 38 | public $messageId; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param $chatId |
||
| 42 | * @param $fromChatId |
||
| 43 | */ |
||
| 44 | 1 | public static function create($chatId, $fromChatId, int $messageId, array $data = null): CopyMessageMethod |
|
| 58 |