Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
35 | public function __construct(string $actionId, ConfirmationDialogObject $confirmDialog = null, OptionObject $initialOption = null, OptionObject ...$options) |
||
36 | { |
||
37 | if (\strlen($actionId) > 255) { |
||
38 | throw new \InvalidArgumentException('$actionId too long!'); |
||
39 | } |
||
40 | if (\count($options) < 1) { |
||
41 | throw new \InvalidArgumentException('$options too short!'); |
||
42 | } |
||
43 | |||
44 | $this->type = MessageTypeEnum::ELEMENT_RADIO_BUTTONS; |
||
45 | $this->actionId = $actionId; |
||
46 | $this->confirmDialog = $confirmDialog; |
||
47 | $this->initialOption = $initialOption; |
||
48 | $this->options = $options; |
||
49 | } |
||
50 | } |
||
51 |