Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class Row extends GlyphBlock |
||
7 | { |
||
8 | 13 | public function addCell(array $config = []): Cell |
|
9 | { |
||
10 | 13 | $cell = new Cell($this->globalConfig); |
|
11 | // Colors are inherited from the parent and override default values |
||
12 | 13 | $symbolConfig = [ |
|
13 | 13 | 'mode' => $this->__get('mode'), |
|
14 | 13 | 'color' => $this->__get('color'), |
|
15 | 13 | 'borderColor' => $this->__get('borderColor'), |
|
16 | 'backgroundColor' => $this->__get('backgroundColor'), |
||
17 | 13 | ]; |
|
18 | 13 | $cell->setConfig(array_merge($cell->getConfig(), $symbolConfig, $config)); |
|
19 | 13 | $this->addChild($cell); |
|
20 | return $cell; |
||
21 | } |
||
22 | 8 | ||
23 | public function getWidthByContent(int $endOfPreviousSibling = 0): int |
||
26 | } |
||
27 | 8 | ||
28 | public function getHeightByContent(int $endOfPreviousSibling = 0): int |
||
31 | } |
||
32 | } |