getElements($cell); foreach ($this->getElements($cell) as $index => $element) { if (! $element instanceof TextBreak) { try { $handler = $this->getHandler($element); } catch (Exception $e) { throw new Exception($e->getMessage()); } $data = $handler->handle($element); $data['width']= $cell->getWidth(); $result[] = $data; } } return [ 'content' => '', 'children' => $result, 'depth' => null, 'type' => 'cell', ]; } }