1 | <?php |
||
5 | class KeyboardButton extends AbstractEntity |
||
6 | { |
||
7 | const ENTITY_TYPE = 'KeyboardButton'; |
||
8 | |||
9 | /** @var string $text */ |
||
10 | protected $text; |
||
11 | |||
12 | /** @var string $request_contact */ |
||
13 | protected $request_contact; |
||
14 | |||
15 | /** @var string $request_location */ |
||
16 | protected $request_location; |
||
17 | |||
18 | protected $supportedProperties = [ |
||
19 | 'text' => true, |
||
20 | 'request_contact' => false, |
||
21 | 'request_location' => false, |
||
22 | ]; |
||
23 | |||
24 | /** |
||
25 | * @return string |
||
26 | */ |
||
27 | public function getText() |
||
31 | |||
32 | /** |
||
33 | * @param string $text |
||
34 | * |
||
35 | * @return $this |
||
36 | */ |
||
37 | public function setText($text) |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getRequestContact() |
||
51 | |||
52 | /** |
||
53 | * @param string $request_contact |
||
54 | * |
||
55 | * @return $this |
||
56 | */ |
||
57 | public function setRequestContact($request_contact) |
||
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | public function getRequestLocation() |
||
71 | |||
72 | /** |
||
73 | * @param string $request_location |
||
74 | * |
||
75 | * @return $this |
||
76 | */ |
||
77 | public function setRequestLocation($request_location) |
||
83 | } |
||
84 |