Vendor/phpspreadsheet/phpoffice/phpspreadsheet/src/PhpSpreadsheet/NamedRange.php
public function setWorksheet(Worksheet $value = null)
    {
        if ($value !== null) {
            $this->worksheet = $value;
        }

        return $this;
    }
public function setWorksheet(Worksheet $value = null)
    {
        if ($value !== null) {
            $this->worksheet = $value;
        }

        return $this;
    }
Set worksheet.

@param Worksheet $value

@return NamedRange