public function __construct(PHPExcel $phpExcel = null) { $this->phpExcel = $phpExcel ?: new PHPExcel(); $this->phpExcel->removeSheetByIndex(0); }