| Total Complexity | 2 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class GetGameHighScoresMethod |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Target user id. |
||
| 24 | * |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | public $userId; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Optional. Required if inline_message_id is not specified. Unique identifier for the target chat. |
||
| 31 | * |
||
| 32 | * @var int|null |
||
| 33 | */ |
||
| 34 | public $chatId; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Optional. Required if inline_message_id is not specified. Identifier of the sent message. |
||
| 38 | * |
||
| 39 | * @var int|null |
||
| 40 | */ |
||
| 41 | public $messageId; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Optional. Required if chat_id and message_id are not specified. Identifier of the inline message. |
||
| 45 | * |
||
| 46 | * @var string|null |
||
| 47 | */ |
||
| 48 | public $inlineMessageId; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param int $userId |
||
| 52 | * @param int $chatId |
||
| 53 | * @param int $messageId |
||
| 54 | * |
||
| 55 | * @return GetGameHighScoresMethod |
||
| 56 | */ |
||
| 57 | public static function create(int $userId, int $chatId, int $messageId): GetGameHighScoresMethod |
||
| 65 | } |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @param int $userId |
||
| 69 | * @param string $inlineMessageId |
||
| 70 | * |
||
| 71 | * @return GetGameHighScoresMethod |
||
| 72 | */ |
||
| 73 | public static function createInline(int $userId, string $inlineMessageId): GetGameHighScoresMethod |
||
| 82 |