protected function createColumn(Table $table, $yamlColumn, Scope $scope)
 {
     if (!is_array($yamlColumn)) {
         $columnLabel = $yamlColumn;
     } else {
         if (!array_key_exists('label', $yamlColumn)) {
             throw new ParsingException("Each 'columns' from 'VerticalTable' must contains a 'label'");
         }
         $columnLabel = $yamlColumn['label'];
     }
     $column = new Column($this->twigExecutor->parse($columnLabel, $scope));
     $table->addColumn($column);
 }
 protected function createColumn(Table $table, $yamlColumn, Scope $scope)
 {
     // Add the column
     $column = new Column();
     $table->addColumn($column);
     // Then parse Cells.
     if (is_array($yamlColumn) && array_key_exists('cells', $yamlColumn) && is_array($yamlColumn['cells'])) {
         $lineIndex = 0;
         foreach ($yamlColumn['cells'] as $yamlCell) {
             $lineIndex += $this->parseCell($table, $column, $lineIndex, $yamlCell, $scope);
         }
     }
 }