index = $sheetIndex; $this->name = self::DEFAULT_SHEET_NAME_PREFIX . ($sheetIndex + 1); } /** * @return int Index of the sheet, based on order of creation (zero-based) */ public function getIndex() { return $this->index; } /** * @return string Name of the sheet */ public function getName() { return $this->name; } /** * @param string $name Name of the sheet * @return Sheet */ public function setName($name) { $this->name = $name; return $this; } }