| 1 | <?php |
||
| 14 | class InlineQuery extends BaseType |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * {@inheritdoc} |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | static protected $requiredParams = ['id', 'from', 'query', 'offset']; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | static protected $map = [ |
||
| 29 | 'id' => true, |
||
| 30 | 'from' => User::class, |
||
| 31 | 'query' => true, |
||
| 32 | 'offset' => true, |
||
| 33 | ]; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Unique identifier for this query |
||
| 37 | * |
||
| 38 | * @var string |
||
| 39 | */ |
||
| 40 | protected $id; |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Sender |
||
| 44 | * |
||
| 45 | * @var User |
||
| 46 | */ |
||
| 47 | protected $from; |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Text of the query |
||
| 51 | * |
||
| 52 | * @var string |
||
| 53 | */ |
||
| 54 | protected $query; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Offset of the results to be returned, can be controlled by the bot |
||
| 58 | * |
||
| 59 | * @var string |
||
| 60 | */ |
||
| 61 | protected $offset; |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return string |
||
| 65 | */ |
||
| 66 | public function getId() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * @param string $id |
||
| 73 | */ |
||
| 74 | public function setId($id) |
||
| 78 | |||
| 79 | /** |
||
| 80 | * @return User |
||
| 81 | */ |
||
| 82 | public function getFrom() |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @param User $from |
||
| 89 | */ |
||
| 90 | public function setFrom($from) |
||
| 94 | |||
| 95 | /** |
||
| 96 | * @return string |
||
| 97 | */ |
||
| 98 | public function getQuery() |
||
| 102 | |||
| 103 | /** |
||
| 104 | * @param string $query |
||
| 105 | */ |
||
| 106 | public function setQuery($query) |
||
| 110 | |||
| 111 | /** |
||
| 112 | * @return string |
||
| 113 | */ |
||
| 114 | public function getOffset() |
||
| 118 | |||
| 119 | /** |
||
| 120 | * @param string $offset |
||
| 121 | */ |
||
| 122 | public function setOffset($offset) |
||
| 126 | } |
||
| 127 |