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