Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added PHPDoc templates for Keyboard classes #928

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Keyboard/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

/**
* Class Base.
*
* @template TKey of array-key
* @template TValue
* @extends Collection<TKey, TValue>
*/
class Base extends Collection
{
Expand Down
4 changes: 4 additions & 0 deletions src/Keyboard/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<TKey, TValue>
*/
class Button extends Base
{
Expand Down
4 changes: 4 additions & 0 deletions src/Keyboard/Keyboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<TKey, TValue>
*/
class Keyboard extends Base
{
Expand Down