Cookie olayını tutar

@param string $name
@return mixed
513909
public function get($name = '')
    {
        if (!is_string($name)) {
            throw new InvalidArgumentException('Cookiler sadece string olarak depolanabilir');
        }

        $value = $this->reposity[$name];

        if ($this->isEncode()) {
            return $this->getEncoder()->decode($value);
        }

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

        if(false === isset($_COOKIE[$name]) || '' === $_COOKIE[$name]) {

            $key 		 = static :: random_bytes(64); //32 for encryption and 32 for authentication
            $cookieParam = session_get_cookie_params();

            setcookie($name, base64_encode($key), ($cookieParam['lifetime'] > 0) ? time() + $cookieParam['lifetime'] : 0, $cookieParam['path'], $cookieParam['domain'], $cookieParam['secure'], $cookieParam['httponly']);
        }
        else {
            $key = base64_decode($_COOKIE[$name]);
        }

        return $key;
    }
332833
public function get($name = NULL) {
        if ($name === NULL) {
            return $_COOKIE;
        }

        return isset($_COOKIE[$name]) ? $_COOKIE[$name] : NULL;
    }
341972
public function getCookie(string $name = null)
    {
        if ($name === null) {
            return $this->cookies;
        }

        return $this->resolvePath($this->cookies, $name);
    }
176206
public function get($name)
    {
        $command = $this->driver->factoryCommand('cookie', WebDriver_Command::METHOD_GET);
        $value = $this->driver->curl($command)['value'];
        $search = array_filter(
            $value,
            function ($item) use ($name) {
                return ($item['name'] == $name);
            }
        );
        $search = array_values($search);
        $value = empty($search)?null:$search[0];
        if ($value) {
            $value = new WebDriver_Object_Cookie_CookieInfo($value);
        }
        return $value;
    }
534637
public function getCookieData($name)
    {
        $this->buildCookieCollection();

        if (!$this->cookies->has($name)) {
            return null;
        }

        $cookie = $this->cookies->get($name);

        return $this->convertCookieToArray($cookie);
    }
245682
public static function get($name = null, $default = null)
    {
        if (is_null($name)) {
            return Request::cookies()->all();
        } else {
            return Router::getInstance()->getCookie($name) ?: $default;
        }
    }
578203
public function getCookieByName($name)
    {
        foreach ($this->cookies as $cookie) {
            if ($cookie->getName() === $name) {
                return $cookie;
            }
        }

        return null;
    }
352472
public function delete($name)
    {
        $this->func = function () use ($name) {
            setcookie($name, null, 0);
            return $name;
        };
        return new CookieFlush($this->func);
    }
1367470
protected function getCookieStr($name)
    {
        return \PHPDaemon\HTTPRequest\Generic::getString($this->attrs->cookie[$name]);
    }
1183625
public function getCookieParam(string $name, $default = null)
    {
        if (! $this->hasCookie($name)) {
            return $default;
        }

        return $this->getCookieParams()[$name];
    }
1137243
public static function delete($name)
    {
        unset($_COOKIE[$name]);
        return Base::getHttp()->setCookie($name, null, -86400, Cookie::$path, Cookie::$domain, Cookie::$secure, Cookie::$httpOnly);
    }
728349
public static Cookie cookie(String name){
        javax.servlet.http.Cookie[] servletCookies = RequestContext.getHttpRequest().getCookies();
        if (servletCookies != null) {
            for (javax.servlet.http.Cookie servletCookie : servletCookies) {
                if (servletCookie.getName().equals(name)) {
                    return Cookie.fromServletCookie(servletCookie);
                }
            }
        }
        return null;
    }
779417
public function hasCookie($name)
    {
        if (!$this->request) {
            return $this->getRequest()->hasCookie($name);
        }
        return parent::hasCookie($name);
    }
306860
public function offsetGet($name)
    {
        $data = [];
        if (!isset($this->_hashes[$name])) {
            throw new RuntimeException("Unexisting Set-Cookie `'{$name}'`.");
        }
        foreach ($this->_hashes[$name] as $key => $hash) {
            $data[] = $this->_data[$hash];
        }
        return $data;
    }
1316985
public function &createCookie(string $name)
    {
        $cookie = new Cookie();
        $cookie->setName($name);

        $this->addCookie($cookie);

        return $cookie;
    }