Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | final class TransactionMessage |
||
10 | { |
||
11 | /** |
||
12 | * First string: segment key |
||
13 | * Second key: sub segment key. |
||
14 | * |
||
15 | * @var array<string, array<string,SegmentInterface>> |
||
16 | */ |
||
17 | private $segments = []; |
||
18 | |||
19 | 8 | public function __construct(array $segments = []) |
|
23 | } |
||
24 | 8 | } |
|
25 | |||
26 | 8 | public function addSegment(SegmentInterface $segment): void |
|
35 | 8 | } |
|
36 | |||
37 | /** @return array<string, array<string,SegmentInterface>> */ |
||
38 | 4 | public function segments(): array |
|
43 |