1 | <?php |
||
13 | class AnswerInlineQuery extends AbstractMethod |
||
14 | { |
||
15 | const NAME = 'answerInlineQuery'; |
||
16 | |||
17 | const RETURN_ENTITY = null; |
||
18 | |||
19 | protected $inline_query_id; |
||
20 | |||
21 | protected $results; |
||
22 | |||
23 | protected $cache_time; |
||
24 | |||
25 | protected $is_personal; |
||
26 | |||
27 | protected $next_offset; |
||
28 | |||
29 | protected $supportedProperties = [ |
||
30 | 'inline_query_id' => true, |
||
31 | 'results' => true, |
||
32 | 'cache_time' => false, |
||
33 | 'is_personal' => false, |
||
34 | 'next_offset' => false |
||
35 | ]; |
||
36 | |||
37 | /** |
||
38 | * Returns the id of query. |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getInlineQueryId() |
||
46 | |||
47 | /** |
||
48 | * Sets inline query id. |
||
49 | * |
||
50 | * @param string $inline_query_id |
||
51 | * |
||
52 | * @return $this |
||
53 | */ |
||
54 | public function setInlineQueryId($inline_query_id) |
||
60 | |||
61 | /** |
||
62 | * Returns result. |
||
63 | * |
||
64 | * @return mixed |
||
65 | */ |
||
66 | public function getResults() |
||
70 | |||
71 | /** |
||
72 | * Sets result |
||
73 | * |
||
74 | * @param mixed $results |
||
75 | * |
||
76 | * @return $this |
||
77 | */ |
||
78 | public function setResults($results) |
||
84 | |||
85 | /** |
||
86 | * Returns cache time. |
||
87 | * |
||
88 | * @return mixed |
||
89 | */ |
||
90 | public function getCacheTime() |
||
94 | |||
95 | /** |
||
96 | * Sets cache time. |
||
97 | * |
||
98 | * @param mixed $cache_time |
||
99 | * |
||
100 | * @return $this |
||
101 | */ |
||
102 | public function setCacheTime($cache_time) |
||
108 | |||
109 | /** |
||
110 | * Returns is personal flag. |
||
111 | * |
||
112 | * @return mixed |
||
113 | */ |
||
114 | public function getIsPersonal() |
||
118 | |||
119 | /** |
||
120 | * Sets is personal flag |
||
121 | * |
||
122 | * @param mixed $is_personal |
||
123 | * |
||
124 | * @return $this |
||
125 | */ |
||
126 | public function setIsPersonal($is_personal) |
||
132 | |||
133 | /** |
||
134 | * Returns next offset. |
||
135 | * |
||
136 | * @return mixed |
||
137 | */ |
||
138 | public function getNextOffset() |
||
142 | |||
143 | /** |
||
144 | * Sets next offset. |
||
145 | * |
||
146 | * @param mixed $next_offset |
||
147 | * |
||
148 | * @return $this |
||
149 | */ |
||
150 | public function setNextOffset($next_offset) |
||
156 | } |
||
157 |