1 | <?php |
||
8 | class Generic extends Template |
||
9 | { |
||
10 | /** |
||
11 | * @var Element[] |
||
12 | */ |
||
13 | private $elements; |
||
14 | |||
15 | /** |
||
16 | * @param Element[] $elements |
||
17 | * |
||
18 | * @throws \InvalidArgumentException |
||
19 | */ |
||
20 | 6 | public function __construct(array $elements) |
|
28 | |||
29 | /** |
||
30 | * @return Element[] |
||
31 | */ |
||
32 | 1 | public function getElements() |
|
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | 2 | public function getType() |
|
44 | |||
45 | /** |
||
46 | * @inheritdoc |
||
47 | */ |
||
48 | 1 | public function jsonSerialize() |
|
55 | } |
||
56 |