Skip to content

Commit

Permalink
Merge pull request #928 from Kravets1996/phpdoc-collection-templates
Browse files Browse the repository at this point in the history
  • Loading branch information
irazasyed committed Feb 26, 2022
2 parents 95d41ac + 7e86b58 commit c84edf5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
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鈥榮 username and the specified inline query in the input field. Can be empty, in which case just the bot鈥檚 username will be inserted.
* @method $this setSwitchInlineQueryCurrentChat($string) (Inline Button Only) Optional. If set, pressing the button will insert the bot鈥榮 username and the specified inline query in the current chat's input field. Can be empty, in which case only the bot鈥檚 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

0 comments on commit c84edf5

Please sign in to comment.