Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function __construct(string $title, array $buttons) |
||
25 | { |
||
26 | parent::__construct(self::TYPE_NESTED); |
||
27 | |||
28 | $this->isValidString($title, 20); |
||
29 | $this->isValidArray($buttons, 5); |
||
30 | $this->isValidButtons($buttons, $this->getAllowedButtonsType()); |
||
31 | |||
32 | $this->title = $title; |
||
33 | $this->buttons = $buttons; |
||
34 | } |
||
35 | |||
75 |