1 | <?php |
||
8 | class Button extends Template |
||
9 | { |
||
10 | /** |
||
11 | * @var null|string |
||
12 | */ |
||
13 | private $text; |
||
14 | |||
15 | /** |
||
16 | * @var ButtonModel[] |
||
17 | */ |
||
18 | private $buttons; |
||
19 | |||
20 | /** |
||
21 | * @param null|string $text |
||
22 | * @param ButtonModel[] $buttons |
||
23 | */ |
||
24 | 6 | public function __construct($text, array $buttons) |
|
29 | |||
30 | /** |
||
31 | * @return null|string |
||
32 | */ |
||
33 | 1 | public function getText() |
|
37 | |||
38 | /** |
||
39 | * @return array |
||
40 | */ |
||
41 | 1 | public function getButtons() |
|
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | 2 | public function getType() |
|
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | 1 | public function jsonSerialize() |
|
65 | } |
||
66 |