public function setColumnWidth($width, $index)
{
if (false === filter_var($width, FILTER_VALIDATE_INT)) {
throw new \InvalidArgumentException("Index must be numeric");
}
if (false === filter_var($index, FILTER_VALIDATE_INT)) {
throw new \InvalidArgumentException("Index must be numeric");
}
$this->phpExcelWorksheet->getColumnDimensionByColumn($index)->setWidth($width);
return $this;
}