public function getOnFileCreate() { if ($this->on_file_create === null) { $this->on_file_create = function (LaravelExcelWriter $excel) { $excel->sheet($this->getSheetName(), $this->getOnSheetCreate()); }; } return $this->on_file_create; }