Add support for setting column width by range

This commit is contained in:
Alexander Hofstede committed 2019-12-13 12:38:00 +01:00
1 parent 82170a058b
commit 80487f1ac1
4 files changed
+54 -6

No files matched your search

@@ -303,13 +303,22 @@ abstract class WorkbookManagerAbstract implements WorkbookManagerInterface
}
/**
* @param float|null $width
* @param float $width
* @param array $columns One or more columns with this width
*/
public function setColumnWidth($width, ...$columns) {
public function setColumnWidth(float $width, ...$columns) {
$this->worksheetManager->setColumnWidth($width, ...$columns);
}
/**
* @param float $width The width to set
* @param int $start First column index of the range
* @param int $end Last column index of the range
*/
public function setColumnWidthForRange(float $width, int $start, int $end) {
$this->worksheetManager->setColumnWidthForRange($width, $start, $end);
}
/**
* Closes the workbook and all its associated sheets.
* All the necessary files are written to disk and zipped together to create the final file.