Set cookie name.

@param string $name cookie name

@throws \InvalidCookieException

@return mixed obj or bool false
177821
public function name($name)
    {
        if (is_null($name)) {
            throw new \InvalidCookieException('Cookie name cannot be null');

            return false;
        }

        $this->name = (string) $this->security->sanitize($name);

        return $this;
    }
290037
public function setName($name)
    {
        // Set name in payload
        $payload = $this->getPayload();
        $payload['name'] = $name;

        return $this->setPayload($payload);
    }
593415
public function setName($name)
	{
		if ( ! is_string($name)) {
			throw new \InvalidArgumentException(
				__METHOD__."() expects parameter one, name, to be a string"
			);	
		}
		
		if ( ! is_readable($name)) {
			throw new \InvalidArgumentException(
				__METHOD__."() expects parameter one, name, to be a readable filename"
			);
		}
		
		$this->name = $name;
		
		return $this;
	}
332147
public function setName($name) {
        if ($name !== null && ! $this->argumentsParser->isOptionName($name)) {
            throw new InvalidOptionNameException(s(
                'A option name must have this format: "--option", got: "%s"', $name
            ));
        }

        $this->name = $name;

        return $this;
    }
359021
public function setName(string $name): void
    {
        if (!Validator::fullyQualifiedDomainName($name)) {
            throw new \InvalidArgumentException(sprintf('Zone "%s" is not a fully qualified domain name.', $name));
        }

        $this->name = $name;
    }
266971
protected function validateName($name)
    {
        if (preg_match("/[=,;\t\r\n\013\014]/", $name)) {
            throw new InvalidArgumentException(
                sprintf('The cookie name `%s` contains invalid characters.', $name)
            );
        }

        if (empty($name)) {
            throw new InvalidArgumentException('The cookie name cannot be empty.');
        }
    }
235715
public function setName(string $name): string
    {
        if ($this->isStarted()) {
            throw new LogicException('Cannot change the name of an active session');
        }

        if (! preg_match('/^[a-zA-Z0-9]+$/', $name)) {
            throw new InvalidArgumentException('Session name provided contains invalid characters; must be alphanumeric only and cannot be empty');
        }

        if (! preg_match('/.*[a-zA-Z]+.*/', $name)) {
            throw new InvalidArgumentException('Session name cannot be a numeric');
        }

        return session_name($name);
    }
220543
public function del($name)
    {
        $name = $this->prefix . $name;
        return setcookie($name, '', 1, $this->path, $this->domain, $this->secure, $this->httpOnly);
    }
1363998
public function cookie($name = null)
    {
        if ($name === null) {
            return $this->cookie;
        }

        return $this->cookie[$name] ?? null;
    }
931256
public function setName($name)
    {
        if (null !== $name) {
            $this->name = (string) $name;
        } else {
            $this->name = $name;
        }

        return $this;
    }
604895
public function setName($name)
    {
        if (!is_string($name) && !is_null($name)) {
            throw new \InvalidArgumentException(__CLASS__ . ' ' . __METHOD__ . ': Not a string');
        }

        $this->name = $name;

        return $this;
    }
696999
public function setName($name)
    {
        $name = Str::cast($name);

        $this->name = $name->lower();

        return $this;
    }
628721
public function setName($name)
    {
        if (in_array($name, Statistics::asArray())) {
            $this->name = $name;
        } else {
            $msg = "The name argument must be a value from the Statistics enumeration, '" . $name . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
653631
public function setName($name)
    {
        $this->name = (string)$name;
        $this->getEntry()
             ->setName($this->name);
        return $this;
    }
914594
public function getResponseCookie($name)
    {
        $cookies = $this->getResponseCookies();
        return isset($cookies[$name]) ? $cookies[$name] : null;
    }
1007235
public function setName($name)
    {
        $this->name = $name;

        $this->model()->setPerPageName("{$name}_{$this->model()->getPerPageName()}");

        $this->getFilter()->setName($name);

        return $this;
    }
831770
public static function get($name = '')
    {
        !isset(self::$init) && self::init();

        if ('' == $name) {
            return $_COOKIE;
        }
        return isset($_COOKIE[$name]) ? $_COOKIE[$name] : false;
    }