lib/Elements/TableCell.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 151-162 (lines=12) @@ | 
                                                            
                                    | 148 |  |         return $this->level; | 
                                                            
                                    | 149 |  |     } | 
                                                            
                                    | 150 |  |  | 
                                                            
                                    | 151 |  |     public function toDOMElement(\DOMDocument $doc): \DOMElement | 
                                                            
                                    | 152 |  |     { | 
                                                            
                                    | 153 |  |         $el = $this->createElement($doc); | 
                                                            
                                    | 154 |  |          | 
                                                            
                                    | 155 |  |         if ($this->getReference() !== null) { | 
                                                            
                                    | 156 |  |             $this->getReference()->setValueToElement($el, $doc); | 
                                                            
                                    | 157 |  |         } | 
                                                            
                                    | 158 |  |          | 
                                                            
                                    | 159 |  |         $el->appendChild($doc->createTextNode($this->getContent())); | 
                                                            
                                    | 160 |  |          | 
                                                            
                                    | 161 |  |         return $el; | 
                                                            
                                    | 162 |  |     } | 
                                                            
                                    | 163 |  | } | 
                                                            
                                    | 164 |  |  | 
                                                                        
                 
                                                            
                    
lib/Elements/TableRow.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 158-171 (lines=14) @@ | 
                                                            
                                    | 155 |  |         return 'tr'; | 
                                                            
                                    | 156 |  |     } | 
                                                            
                                    | 157 |  |  | 
                                                            
                                    | 158 |  |     public function toDOMElement(\DOMDocument $doc): \DOMElement | 
                                                            
                                    | 159 |  |     { | 
                                                            
                                    | 160 |  |         $el = $this->createElement($doc); | 
                                                            
                                    | 161 |  |          | 
                                                            
                                    | 162 |  |         if ($this->getReference() !== null) { | 
                                                            
                                    | 163 |  |             $this->getReference()->setValueToElement($el, $doc); | 
                                                            
                                    | 164 |  |         } | 
                                                            
                                    | 165 |  |          | 
                                                            
                                    | 166 |  |         foreach ($this->getCells() as $cell) { | 
                                                            
                                    | 167 |  |             $el->appendChild($cell->toDOMElement($doc)); | 
                                                            
                                    | 168 |  |         } | 
                                                            
                                    | 169 |  |          | 
                                                            
                                    | 170 |  |         return $el; | 
                                                            
                                    | 171 |  |     } | 
                                                            
                                    | 172 |  | } | 
                                                            
                                    | 173 |  |  |