Cartalyst\Sentinel\Cookies\NativeCookie::getCookie PHP Method

getCookie() protected method

Returns a PHP cookie.
protected getCookie ( ) : mixed
return mixed
    protected function getCookie()
    {
        if (isset($_COOKIE[$this->options['name']])) {
            $value = $_COOKIE[$this->options['name']];
            if ($value) {
                return json_decode($value);
            }
        }
    }