/** * Get the value of a given cookie * @param string $key Name of cookie to be retrieved * @param string $default * @return mixed */ public function get($key, $default = "") { if (!is_null($value = RequestMethods::cookie($key))) { return $this->parse($value); } return $default; }