| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function __construct($title, $text, $thumbnail, array $actions = []) |
||
| 42 | { |
||
| 43 | $this->title = $title; |
||
| 44 | $this->text = $text; |
||
| 45 | $this->thumbnail = $thumbnail; |
||
| 46 | |||
| 47 | foreach ($actions as $action) { |
||
| 48 | if (!$action instanceof Action) { |
||
| 49 | throw new \InvalidArgumentException("`Action` should be typeof: ".Action::class); |
||
| 50 | } |
||
| 51 | |||
| 52 | $this->actions[] = $action; |
||
| 53 | } |
||
| 83 |