Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
34 | public function __construct(string $placeholder, string $actionId, array $initialUsers = [], ConfirmationDialogObject $confirmDialog = null) |
||
35 | { |
||
36 | if (\strlen($placeholder) > 150) { |
||
37 | throw new \InvalidArgumentException('$text too long!'); |
||
38 | } |
||
39 | if (\strlen($actionId) > 255) { |
||
40 | throw new \InvalidArgumentException('$actionId too long!'); |
||
41 | } |
||
42 | |||
43 | $this->type = MessageTypeEnum::ELEMENT_MULTI_SELECT_USER; |
||
44 | $this->placeholder = new PlainTextElement($placeholder); |
||
45 | $this->actionId = $actionId; |
||
46 | $this->initialUsers = $initialUsers; |
||
47 | $this->confirmDialog = $confirmDialog; |
||
48 | } |
||
49 | } |
||
50 |