Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
9 | final class ShlinkTable |
||
10 | { |
||
11 | private const DEFAULT_STYLE_NAME = 'default'; |
||
12 | private const TABLE_TITLE_STYLE = '<options=bold> %s </>'; |
||
13 | |||
14 | /** @var Table|null */ |
||
15 | private $baseTable; |
||
16 | |||
17 | 14 | public function __construct(Table $baseTable) |
|
18 | { |
||
19 | 14 | $this->baseTable = $baseTable; |
|
20 | } |
||
21 | |||
22 | 13 | public static function fromOutput(OutputInterface $output): self |
|
25 | } |
||
26 | |||
27 | 13 | public function render(array $headers, array $rows, ?string $footerTitle = null, ?string $headerTitle = null): void |
|
40 | } |
||
41 | } |
||
42 |