Box\Spout\Writer\Common\Sheet::setName PHP Method

setName() public method

Sets the name of the sheet. Note that Excel has some restrictions on the name: - it should not be blank - it should not exceed 31 characters - it should not contain these characters: \ / ? * : [ or ] - it should be unique
public setName ( string $name ) : Sheet
$name string Name of the sheet
return Sheet
    public function setName($name)
    {
        $this->throwIfNameIsInvalid($name);
        $this->name = $name;
        self::$SHEETS_NAME_USED[$this->index] = $name;
        return $this;
    }