public function get($name, $default = null)
    {
        if (null !== ($value = $this->request->cookies->get($name))) {
            return $value ?: $default;
        }

        return $default;
    }
public function get($name, $default = null)
    {
        if (null !== ($value = $this->request->cookies->get($name))) {
            return $value ?: $default;
        }

        return $default;
    }
public function get ( $ name , $ default = null ) { if ( null !== ( $ value = $ this -> request -> cookies -> get ( $ name ) ) ) { return $ value ? : $ default ; } return $ default ; }
Get cookie value

@param $name
@param null $default
@return mixed|null
Get cookie value