Total Complexity | 2 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | class SendPollMethod implements SendMethodAliasInterface |
||
19 | { |
||
20 | use FillFromArrayTrait; |
||
21 | use SendToChatVariablesTrait; |
||
22 | |||
23 | /** |
||
24 | * Poll question, 1-255 characters. |
||
25 | * |
||
26 | * @var string; |
||
27 | */ |
||
28 | public $question; |
||
29 | |||
30 | /** |
||
31 | * List of answer options, 2-10 strings 1-100 characters each. |
||
32 | * |
||
33 | * @var string[] |
||
34 | */ |
||
35 | public $options; |
||
36 | |||
37 | /** |
||
38 | * @param string $chatId |
||
39 | * @param string $question |
||
40 | * @param string[] $options |
||
41 | * @param array|null $data |
||
42 | * |
||
43 | * @return SendPollMethod |
||
44 | */ |
||
45 | 3 | public static function create(string $chatId, string $question, array $options, array $data = null): self |
|
58 |