Get a cookie.

@param string $name Cookie name.
@return MutableCookie A mutable cookie.
331758
public function offsetGet($name)
    {
        if (! isset($this->cookies[$name])) {
            $this->cookies[$name] = $this->setDefaults(new MutableCookie($name), true);
        }
        return $this->cookies[$name];
    }
1081459
public YokeCookie getCookie(@NotNull final String name) {
        if (cookies != null) {
            for (YokeCookie c : cookies) {
                if (name.equals(c.name())) {
                    return c;
                }
            }
        }
        return null;
    }
831770
public static function get($name = '')
    {
        !isset(self::$init) && self::init();

        if ('' == $name) {
            return $_COOKIE;
        }
        return isset($_COOKIE[$name]) ? $_COOKIE[$name] : false;
    }
986318
public function get(string $name): ?\BearFramework\App\Response\Cookie
    {
        if (isset($this->data[$name])) {
            return clone($this->data[$name]);
        }
        return null;
    }
262294
public function get($name, $default = null)
    {
        $responseCookie = $this->responseCookies->getCookieByName($name);
        if ($responseCookie !== null) {
            return $responseCookie->getValue();
        }
        if (in_array($name, $this->responseCookies->getClearedCookies(), true)) {
            return $default;
        }

        return $this->getRequest()->cookies->get($name, $default);
    }
273792
public function get($name)
    {
        $key = mb_strtolower($name);
        foreach ($this->cookies as $cookie) {
            if (mb_strtolower($cookie->getName()) === $key) {
                return $cookie;
            }
        }

        return null;
    }
915100
public function get($name, $default = null)
    {
        if (isset($name) && !empty($name)) {
            if ($this->has($name)) {
                return $_COOKIE[$name];
            } else {
                return $default;
            }
        } else {
            return false;
        }
    }
1088616
public static function forge($name, $cookie = null)
    {
        $factory = new SessionFactory();
        $cookie  = $cookie ?: $_COOKIE;
        $session = $factory->newInstance($cookie);
        $self    = new self($session);
        $self->start();

        return $self->withStorage($name);
    }
424175
public static function CreateCookieName ($name = self::DEFAULT_CONNECTION_NAME) {
		$options = static::GetAuthCookieOptions($name);
		$cookie_save_dir	= $options['cookie_save_dir'];
		$cookie_name_prefix	= $options['cookie_name_prefix'];
		$cookie_name_safix	= $options['cookie_name_safix'];

		clearstatcache();
		for ($i = 0;$i < 100;$i++) {
			$cookie_name = sprintf('%s%s%s', $cookie_name_prefix, Hash::HmacString(rand(1, $i.microtime(true)).$cookie_name_prefix, rand(1, microtime(true)).$cookie_name_safix), $cookie_name_safix);
			if (!is_file(static::CreateCookieSavePath($cookie_name))) {
				return $cookie_name;
			}
		}

		return null;
	}
623816
public function get($name) {
		if (isset($_COOKIE[$name]))
			return $this->decrypt( $_COOKIE[$name] );
		else
			return NULL;
	}
522734
public function get($name = null)
    {
        if (is_null($name)) {
            $name = $this->security->sanitize($this->name);
        }

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

        if (!isset(static::$cookies[$name])) {
            throw new InvalidCookieException('Cookie '.$name.' not found');
        }

        if (isset(static::$cookies[$name])) {
            if (is_array(static::$cookies[$name])) {
                return json_decode(static::$cookies[$name]);
            }

            return $this->security->sanitize(static::$cookies[$name]);
        }
    }
509126
public function get($name)
    {
        $cookie = $this->request->getCookieParams();

        return array_key_exists($name, $cookie) ? $cookie[$name] : null;
    }
320285
public static function erase($name) {

        try {

            $class = get_called_class();

            $cookie = new $class($name);

            return $cookie->delete();

        } catch (CookieException $ce) {

            throw $ce;

        }

    }
1307569
public function removeCookie($name)
	{
		$cookie = new SetCookieHeader($name, '');
		$cookie->setExpires(1337);
		
		$this->addHeader($cookie);
		
		return $this;
	}
413344
public function get( $name ) {

		if ( ! isset( $this->cookie[ $name ] ) ) { // Input var okay.
			return null;
		}

		return strip_tags( stripslashes( $this->cookie[ $name ] ) ); // Input var okay.
	}
352472
public function delete($name)
    {
        $this->func = function () use ($name) {
            setcookie($name, null, 0);
            return $name;
        };
        return new CookieFlush($this->func);
    }
523766
public function getCookie($name, $default = null)
    {
        if (!$this->request) {
            return $this->getRequest()->getCookie($name);
        }
        return parent::getCookie($name, $default);
    }