Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class ConsolePrinter implements PrinterInterface |
||
11 | { |
||
12 | /** @var string[] */ |
||
13 | private array $segmentNames; |
||
14 | |||
15 | public static function createWithHeaders(array $segmentNames): self |
||
16 | { |
||
17 | return new self($segmentNames); |
||
18 | } |
||
19 | |||
20 | private function __construct(array $segmentNames) |
||
21 | { |
||
22 | $this->segmentNames = $segmentNames; |
||
23 | } |
||
24 | |||
25 | public function printMessage(TransactionMessage $message): void |
||
29 | } |
||
30 | } |
||
31 | |||
32 | /** @var SegmentInterface[] */ |
||
33 | private function printSegment(array $segments): void |
||
43 | ); |
||
44 | } |
||
47 |