1 | <?php |
||
8 | class Update extends AbstractEntity |
||
9 | { |
||
10 | const ENTITY_TYPE = 'Update'; |
||
11 | |||
12 | protected $updateType = Message::ENTITY_TYPE; |
||
13 | |||
14 | protected $update_id; |
||
15 | |||
16 | protected $message; |
||
17 | |||
18 | protected $edited = false; |
||
19 | |||
20 | protected $inline_query; |
||
21 | |||
22 | protected $chosen_inline_result; |
||
23 | |||
24 | protected $builtInEntities = [ |
||
25 | 'message' => Message::class, |
||
26 | 'inline_query' => InlineQuery::class, |
||
27 | 'chosen_inline_result' => ChosenInlineResult::class |
||
28 | ]; |
||
29 | |||
30 | /** |
||
31 | * @return mixed |
||
32 | */ |
||
33 | public function getUpdateId() |
||
37 | |||
38 | /** |
||
39 | * @param mixed $update_id |
||
40 | */ |
||
41 | public function setUpdateId($update_id) |
||
45 | |||
46 | /** |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function getMessage() |
||
53 | |||
54 | /** |
||
55 | * @param mixed $message |
||
56 | */ |
||
57 | public function setMessage($message) |
||
62 | |||
63 | /** |
||
64 | * @return bool |
||
65 | */ |
||
66 | public function isEdited() |
||
70 | |||
71 | /** |
||
72 | * @param bool $edited |
||
73 | */ |
||
74 | public function setEdited($edited) |
||
78 | |||
79 | /** |
||
80 | * @param mixed $message |
||
81 | */ |
||
82 | public function setEditedMessage($message) |
||
87 | |||
88 | /** |
||
89 | * @return mixed |
||
90 | */ |
||
91 | public function getInlineQuery() |
||
95 | |||
96 | /** |
||
97 | * @param mixed $inline_query |
||
98 | */ |
||
99 | public function setInlineQuery($inline_query) |
||
104 | |||
105 | /** |
||
106 | * @return mixed |
||
107 | */ |
||
108 | public function getChosenInlineResult() |
||
112 | |||
113 | /** |
||
114 | * @param mixed $chosen_inline_result |
||
115 | */ |
||
116 | public function setChosenInlineResult($chosen_inline_result) |
||
121 | |||
122 | /** |
||
123 | * @return string |
||
124 | */ |
||
125 | public function getUpdateType() |
||
129 | |||
130 | /** |
||
131 | * @param AbstractEntity $object |
||
132 | */ |
||
133 | public function setUpdateType($object) |
||
141 | |||
142 | public function getUpdateTypeEntity() |
||
160 | } |
||
161 |