Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | final class TransactionMessage |
||
10 | { |
||
11 | /** |
||
12 | * First string: segment key |
||
13 | * Second key: sub segment key. |
||
14 | * |
||
15 | * @psalm-var array<string, array<string,SegmentInterface>> |
||
16 | */ |
||
17 | private array $segments = []; |
||
18 | |||
19 | 6 | public static function withSegments(SegmentInterface...$segments): self |
|
28 | } |
||
29 | |||
30 | 9 | public function addSegment(SegmentInterface $segment): void |
|
39 | 9 | } |
|
40 | |||
41 | 5 | public function segments(): array |
|
46 |