protected function createCell(Table $table, Line $line, Column $column, $yamlCell, Scope $scope) { if (!is_array($yamlCell)) { $content = $yamlCell; } else { if (!array_key_exists('cellContent', $yamlCell)) { throw new ParsingException("Each 'cells' from 'VerticalTable' must contains a 'cellContent'"); } $content = $yamlCell['cellContent']; } $cell = new Cell(); $cell->setContent($this->twigExecutor->parse($content, $scope)); $table->setCell($line, $column, $cell); }