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