public function getCookie($forceRefresh = false, $method = 'noCode')
    {
        $cacheKey = $this->getCacheKey();
        $cookie = $this->getCache()->fetch($cacheKey);

        if ($forceRefresh || empty($cookie)) {
            if (is_array($method)) {
                $cookie = call_user_func_array([$this, $method['method']], $method['param']);
            } else {
                $cookie = call_user_func([$this, $method]);
            }

            $this->setCookie($cookie);
        }

        return $cookie;
    }