1 | <?php |
||
9 | class Poll extends BaseType implements TypeInterface |
||
10 | { |
||
11 | static protected $requiredParams = ['question', 'options']; |
||
12 | |||
13 | protected $id; |
||
14 | |||
15 | protected $question; |
||
16 | |||
17 | protected $options; |
||
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | * |
||
22 | * @var array |
||
23 | */ |
||
24 | static protected $map = [ |
||
25 | 'id' => true, |
||
26 | 'question' => true, |
||
27 | 'options' => true, |
||
28 | 'reply_to_message_id' => false, |
||
29 | 'reply_markup' => true |
||
30 | ]; |
||
31 | |||
32 | public function setId($id) |
||
36 | |||
37 | public function getId() |
||
41 | |||
42 | public function setQuestion($question) |
||
46 | |||
47 | public function getQuestion() |
||
51 | |||
52 | public function setOptions($options) |
||
56 | |||
57 | public function getOptions() |
||
61 | } |
||
62 |