Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class TIMCombinationElem implements MessageInterface |
||
14 | { |
||
15 | public $type = 'TIMCombinationElem'; |
||
16 | |||
17 | protected $messages = []; |
||
18 | |||
19 | 2 | public function __construct(Message ...$messages) |
|
22 | 2 | } |
|
23 | |||
24 | 2 | public function transformToArray(array $appends = [], bool $isFlat = true): array |
|
25 | { |
||
26 | 2 | $msgBody = []; |
|
27 | |||
28 | 2 | foreach ($this->messages as $message) { |
|
29 | 2 | $msgBody[] = $message->transformToArray($appends, $isFlat); |
|
30 | } |
||
31 | |||
32 | 2 | return $msgBody; |
|
33 | } |
||
34 | |||
35 | public function getType(): string |
||
36 | { |
||
37 | return $this->type; |
||
38 | } |
||
39 | |||
40 | public function transformToJson(): string |
||
43 | } |
||
44 | } |
||
45 |