Returns an array with all cookies

@return array
501754
public function getCookies()
    {
        $result = array();
        foreach ($this->_cookies as $path)
        {
            foreach ($path as $cookies)
            {
                foreach ($cookies as $cookie) {
                    $result[] = $cookie;
                }
            }
        }

        return $result;
    }
642965
public function getAllCookies()
    {
        return filter_input_array(\INPUT_COOKIE, array_combine(
            array_keys($_COOKIE),
            array_fill(0, count($_COOKIE), \FILTER_SANITIZE_STRING)
        ));
    }
603604
public function getAll()
    {
        $aRes = array();
        foreach ($this->getKeys() as $sKey) {
            $aRes[$sKey] = $this->get($sKey);
        }
        return $aRes;
    }
60037
final protected function getCookies() : array
    {
        $cookieMask = $this->contexts['cookies'];
        return empty($cookieMask)
            ? $_COOKIE
            : array_intersect_key($_COOKIE, array_flip($cookieMask));
    }
188434
protected function getCookieElement()
    {
        if (! request()->hasCookie(config('cart_manager.cookie_name'))) {
            $cookie = str_random(20);
            Cookie::queue(Cookie::make(
                config('cart_manager.cookie_name'),
                $cookie,
                config('cart_manager.cookie_lifetime')
            ));
        } else {
            $cookie = Cookie::get(config('cart_manager.cookie_name'));
        }

        return ['cookie' => $cookie];
    }
1080199
public function getAll() 
    {
        return [
            self::ENTRY_ID         => $this->getId(),
            self::ENTRY_NAME       => $this->getName(),
            self::ENTRY_TYPE       => $this->getType(),
        ];
    }
634710
public function getCookieParams()
    {
        if ($this->cookieParams === null) {
            if ($this->cookieParamsProvider !== null) {
                $this->cookieParams = ($this->cookieParamsProvider)();
            } else {
                $this->cookieParams = [];
            }
        }
        return $this->cookieParams;
    }
1095451
protected function _cookies() {
		$cookies = $this->cookies;
		$invalid = str_split(",; \+\t\r\n\013\014");
		$replace = array_map('rawurlencode', $invalid);

		foreach ($cookies as $key => &$value) {
			if (!is_scalar($value)) {
				$message = "Non-scalar value cannot be rendered for cookie `{$key}`";
				throw new UnexpectedValueException($message);
			}
			$value = strtr($value, array_combine($invalid, $replace));
			$value = "{$key}={$value}";
		}
		return implode('; ', $cookies);
	}
1218141
public function headers(): array
    {
        return collect($this->request->getHeaders())->mapWithKeys(function ($values, $header) {
            return [$header => $values[0]];
        })->all();
    }
1351901
public function toArray()
    {
        return array(
            'name'   => $this->name,
            'value'  => $this->value,
            'path'   => $this->path,
            'domain' => $this->domain,
            'secure' => $this->isSecure,
            'expiry' => null === $this->expiry ? null : $this->expiry->getTimestamp()
        );
    }
818556
public function getAllFilters()
    {
        $filters = [];

        foreach ($this->filters as $filter) {
            $filters = array_merge($filters, $filter->getAllFilters());
        }

        return $filters;
    }
1294691
private function getCookieId()
    {
        return $this->trackIfEnabled('cookies', function () {
            return ! is_null($name = $this->getConfig('cookie.name'))
                ? $this->getCookieTracker()->track($this->request->cookie($name))
                : null;
        });
    }
739606
public static function getAll()
    {
        Base::checkOpen();
        if (Base::driver() == "file") {
            return $_SESSION;
        }
        $session = Base::getSessionObject();
        $data_str = $session->read($session->getId());
        if ($data_str === null) {
            return [];
        }
        return unserialize($data_str);
    }
280954
public final function cookies(array $cookies = null): array
    {
        return ($cookies == null) ? $this->getCookies() : $this->getCookies($cookies);
    }
741301
@Override
    public Cookie[] getCookies() {
        final IPortletWindowId portletWindowId = this.portletWindow.getPortletWindowId();
        return this.portletCookieService.getAllPortletCookies(this.servletRequest, portletWindowId);
    }
1034113
public List<Cookie> getAll() {
		List<Cookie> cookies = new ArrayList<Cookie>();
		for(org.apache.http.cookie.Cookie cookie : getStore().getCookies()) 
			cookies.add(getCookie(cookie));
		return cookies;
	}
486924
protected function parseCookies ()
    {
        $cookie = '';

        foreach( $this->cookies as $name => $value )
            $cookie .= $name . '=' . $value . '; ';

        return rtrim( $cookie, ';' );
    }