获取COOKIE

@param string $name 待获取的COOKIE名字
@return string/NULL/array $name为NULL时返回整个$_COOKIE，存在时返回COOKIE，否则返回NULL
332833
public function get($name = NULL) {
        if ($name === NULL) {
            return $_COOKIE;
        }

        return isset($_COOKIE[$name]) ? $_COOKIE[$name] : NULL;
    }
933913
public function destroy($name = null)
    {
        if (is_null($name)) {
            $name = $this->name;
        }

        return setcookie($name, null, (time() - 1), $this->path, $this->domain);
    }
388190
function hasCookie($name = null) {
        if ($name){
            return isset($this->cookie[$name]);
        }else{
            return count($this->cookie) > 0;
        }
    }
91028
public function getCookieParam($name, $default = null)
    {
        if (isset($this->cookieParams[$name])) {
            return $this->cookieParams[$name];
        }

        return $default;
    }
131116
public static function get($name, $options = [])
    {
        $default = isset($options["default"]) ? $options["default"] : null;

        return isset($_COOKIE[$name]) ? $_COOKIE[$name] : $default;
    }
1093515
public String cookie(String name) {
        Cookie[] cookies = servletRequest.getCookies();
        if (cookies != null) {
            for (Cookie cookie : cookies) {
                if (cookie.getName().equals(name)) {
                    return cookie.getValue();
                }
            }
        }
        return null;
    }
1337719
public HttpCookie getCookie(String name) {
		List<HttpCookie> cookie = getCookies();
		if (null != cookie) {
			for (HttpCookie httpCookie : cookie) {
				if (httpCookie.getName().equals(name)) {
					return httpCookie;
				}
			}
		}
		return null;
	}
977559
public function getFlashCookieObject($name)
    {
        if (isset($_COOKIE[$name])) {
            $object = json_decode($_COOKIE[$name]);
            setcookie($name, '', time() - 3600, '/');
            return $object;
        }

        return null;
    }
523766
public function getCookie($name, $default = null)
    {
        if (!$this->request) {
            return $this->getRequest()->getCookie($name);
        }
        return parent::getCookie($name, $default);
    }
1145579
public function getCookieNamed($name)
    {
        $cookies = $this->getCookies();
        foreach ($cookies as $cookie) {
            if ($cookie['name'] === $name) {
                return $cookie;
            }
        }

        return null;
    }
639531
public function get(string $name): ?ResponseCookieInterface
    {
        if (!isset($this->responseCookies[$name])) {
            return null;
        }

        return $this->responseCookies[$name];
    }
115200
public function get($name)
    {
        // 未加载数据,已登录,session中存在需要的key
        if (!$this->isLoaded() && isset($this->session['user'][$name])) {
            return $this->session['user'][$name];
        } else {
            $this->loadDbUser();

            return parent::get($name);
        }
    }
917727
public function get_cookie($name) {
		$retval = NULL;
		if(isset($_COOKIE) && isset($_COOKIE[$name])) {
			$retval = $_COOKIE[$name];
		}
		return($retval);
	}
286451
public function get(string $name): ?string
    {
        $key = strtolower($name);
        if (!isset($this->headers[$key])) {
            return null;
        }

        return $this->headers[$key][1];
    }
1123969
public function getCookieValue(string $name): ?string
    {
        $cookie = $this->cookies->get($name);

        return $cookie !== null ? $cookie->getValue() : null;
    }
529
public static function get($name, $default = null)
    {
        if (isset(static::$jar[$name])) {
            return static::parse(static::$jar[$name]['value']);
        }

        $cookie = Request::$cookieData;

        if (!is_null($value = $cookie->get($name))) {
            return static::parse($value);
        }

        return $default;
    }
108615
public String getCookieValue(String name) {
		HttpCookie cookie = getCookie(name);
		return (null == cookie) ? null : cookie.getValue();
	}