public static function newColumn($data, $name, $cellType = DataTablesColumnInterface::DATATABLES_CELL_TYPE_TD) {

        $dtColumn = new DataTablesColumn();
        $dtColumn->getMapping()->setColumn($data);
        $dtColumn->setCellType($cellType);
        $dtColumn->setData($data);
        $dtColumn->setName($name);
        $dtColumn->setTitle($name);

        return $dtColumn;
    }
public static function newColumn($data, $name, $cellType = DataTablesColumnInterface::DATATABLES_CELL_TYPE_TD) {

        $dtColumn = new DataTablesColumn();
        $dtColumn->getMapping()->setColumn($data);
        $dtColumn->setCellType($cellType);
        $dtColumn->setData($data);
        $dtColumn->setName($name);
        $dtColumn->setTitle($name);

        return $dtColumn;
    }
public static function newColumn ( $ data , $ name , $ cellType = DataTablesColumnInterface :: DATATABLES_CELL_TYPE_TD ) { $ dtColumn = new DataTablesColumn ( ) ; $ dtColumn -> getMapping ( ) -> setColumn ( $ data ) ; $ dtColumn -> setCellType ( $ cellType ) ; $ dtColumn -> setData ( $ data ) ; $ dtColumn -> setName ( $ name ) ; $ dtColumn -> setTitle ( $ name ) ; return $ dtColumn ; }
Create a new column instance.

@param string $data The column data.
@param string $name The column name.
@param string $cellType The column cell type.
@return DataTablesColumnInterface Returns a column.
Create a new column instance .