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;
    }