1 | <?php |
||
7 | class InlineKeyboardButton extends AbstractEntity |
||
8 | { |
||
9 | const ENTITY_TYPE = 'InlineKeyboardButton'; |
||
10 | |||
11 | /** @var string $text */ |
||
12 | protected $text; |
||
13 | |||
14 | /** @var string $url */ |
||
15 | protected $url; |
||
16 | |||
17 | /** @var string $callback_data */ |
||
18 | protected $callback_data; |
||
19 | |||
20 | /** @var string $switch_inline_query */ |
||
21 | protected $switch_inline_query; |
||
22 | |||
23 | protected $supportedProperties = [ |
||
24 | 'text' => true, |
||
25 | 'url' => false, |
||
26 | 'callback_data' => false, |
||
27 | 'switch_inline_query' => false |
||
28 | ]; |
||
29 | |||
30 | /** |
||
31 | * @return string |
||
32 | */ |
||
33 | public function getText() |
||
37 | |||
38 | /** |
||
39 | * @param string $text |
||
40 | * |
||
41 | * @return $this |
||
42 | */ |
||
43 | public function setText($text) |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getUrl() |
||
57 | |||
58 | /** |
||
59 | * @param string $url |
||
60 | * |
||
61 | * @return $this |
||
62 | */ |
||
63 | public function setUrl($url) |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getCallbackData() |
||
77 | |||
78 | /** |
||
79 | * @param string $callback_data |
||
80 | * |
||
81 | * @return $this |
||
82 | */ |
||
83 | public function setCallbackData($callback_data) |
||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getSwitchInlineQuery() |
||
97 | |||
98 | /** |
||
99 | * @param string $switch_inline_query |
||
100 | * |
||
101 | * @return $this |
||
102 | */ |
||
103 | public function setSwitchInlineQuery($switch_inline_query) |
||
109 | } |
||
110 |