| Total Complexity | 6 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Cell extends GlyphBlock |
||
| 6 | { |
||
| 7 | 9 | public function getWidthByContent(int $endOfPreviousSibling = 0): int |
|
| 8 | { |
||
| 9 | 9 | $this->offsetX = $this->__get('paddingLeft') + $this->__get('borderLeft'); |
|
| 10 | 9 | if ($this->renderedWidth) { |
|
| 11 | 8 | return $this->width; |
|
| 12 | } |
||
| 13 | |||
| 14 | 9 | foreach ($this->children as $child) { |
|
| 15 | 9 | $this->width = $child->getWidthByContent(0); |
|
| 16 | } |
||
| 17 | 9 | parent::appendWidth($this->width); |
|
| 18 | 9 | return $this->width; |
|
| 19 | } |
||
| 20 | |||
| 21 | 10 | public function getHeightByContent(int $endOfPreviousSibling = 0): int |
|
| 33 | } |
||
| 34 | } |
||
| 35 |