diff --git a/src/Keyboard/Base.php b/src/Keyboard/Base.php index 988f6692..4ff4d4f1 100644 --- a/src/Keyboard/Base.php +++ b/src/Keyboard/Base.php @@ -7,6 +7,10 @@ /** * Class Base. + * + * @template TKey of array-key + * @template TValue + * @extends Collection */ class Base extends Collection { diff --git a/src/Keyboard/Button.php b/src/Keyboard/Button.php index 97fd7465..e7547ec0 100644 --- a/src/Keyboard/Button.php +++ b/src/Keyboard/Button.php @@ -12,6 +12,10 @@ * @method $this setSwitchInlineQuery($string) (Inline Button Only) Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query in the input field. Can be empty, in which case just the bot’s username will be inserted. * @method $this setSwitchInlineQueryCurrentChat($string) (Inline Button Only) Optional. If set, pressing the button will insert the bot‘s username and the specified inline query in the current chat's input field. Can be empty, in which case only the bot’s username will be inserted. * @method $this setCallbackGame($string) (Inline Button Only) Optional. Description of the game that will be launched when the user presses the button. + * + * @template TKey of array-key + * @template TValue + * @extends Base */ class Button extends Base { diff --git a/src/Keyboard/Keyboard.php b/src/Keyboard/Keyboard.php index 1b2a6da5..87b3b3d6 100644 --- a/src/Keyboard/Keyboard.php +++ b/src/Keyboard/Keyboard.php @@ -29,6 +29,10 @@ * @method $this setResizeKeyboard($boolean) Optional. Requests clients to resize the keyboard vertically for optimal fit. * @method $this setOneTimeKeyboard($boolean) Optional. Requests clients to hide the keyboard as soon as it's been used. * @method $this setSelective($boolean) Optional. Use this parameter if you want to show the keyboard to specific users only. + * + * @template TKey of array-key + * @template TValue + * @extends Base */ class Keyboard extends Base {