| Conditions | 4 | 
| Paths | 8 | 
| Total Lines | 19 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 12 | public function __construct(TableCell $node)  | 
            ||
| 13 |     { | 
            ||
| 14 | parent::__construct($node);  | 
            ||
| 15 | |||
| 16 | $attributes = [];  | 
            ||
| 17 |         if (null !== $node->getBackground()) { | 
            ||
| 18 |             $attributes[] = sprintf('style="background-color: %s"', $node->getBackground()); | 
            ||
| 19 | }  | 
            ||
| 20 |         if (null !== $node->getColspan()) { | 
            ||
| 21 |             $attributes[] = sprintf('colspan="%s"', $node->getColspan()); | 
            ||
| 22 | }  | 
            ||
| 23 |         if (null !== $node->getRowspan()) { | 
            ||
| 24 |             $attributes[] = sprintf('rowspan="%s"', $node->getRowspan()); | 
            ||
| 25 | }  | 
            ||
| 26 | // TODO: support colwidth  | 
            ||
| 27 | |||
| 28 | $this->tags = [  | 
            ||
| 29 |             sprintf('<td%s>', implode(' ', $attributes)), | 
            ||
| 30 | '</td>',  | 
            ||
| 31 | ];  | 
            ||
| 34 |