| Total Complexity | 2 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class ForwardMessageMethod implements SendMethodAliasInterface, ForwardMethodAliasInterface |
||
| 19 | { |
||
| 20 | use FillFromArrayTrait; |
||
| 21 | use ChatIdVariableTrait; |
||
| 22 | /** |
||
| 23 | * Unique identifier for the chat where the original message was sent |
||
| 24 | * (or channel username in the format @channelusername). |
||
| 25 | * |
||
| 26 | * @var int|string |
||
| 27 | */ |
||
| 28 | public $fromChatId; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Optional. Sends the message silently. Users will receive a notification with no sound. |
||
| 32 | * |
||
| 33 | * @var bool|null |
||
| 34 | */ |
||
| 35 | public $disableNotification; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Message identifier in the chat specified in from_chat_id. |
||
| 39 | * |
||
| 40 | * @var int |
||
| 41 | */ |
||
| 42 | public $messageId; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param int|string $chatId |
||
| 46 | * @param int|string $fromChatId |
||
| 47 | * @param int $messageId |
||
| 48 | * @param array|null $data |
||
| 49 | * |
||
| 50 | * @throws BadArgumentException |
||
| 51 | * |
||
| 52 | * @return ForwardMessageMethod |
||
| 53 | */ |
||
| 54 | 6 | public static function create($chatId, $fromChatId, int $messageId, array $data = null): self |
|
| 68 |