| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class KeyboardButtonPollType implements PollTypeInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. |
||
| 19 | * If regular is passed, only regular polls will be allowed. |
||
| 20 | * Otherwise, the user will be allowed to create a poll of any type. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | public $type; |
||
| 25 | |||
| 26 | public static function create(string $type): KeyboardButtonPollType |
||
| 34 |