Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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 | } |
||
32 | } |