original_string: public function cookie($name = null, $default = null, $type = null)
      {
          $cookie = $this->request['cookie'];
          gplcart_array_trim($cookie, true);
  
          if (isset($name)) {
              $return = isset($cookie[$name]) ? $cookie[$name] : $default;
          } else {
              $return = $cookie;
          }
  
          gplcart_settype($return, $type, $default);
          return $return;
      }
code: public function cookie($name = null, $default = null, $type = null)
      {
          $cookie = $this->request['cookie'];
          gplcart_array_trim($cookie, true);
  
          if (isset($name)) {
              $return = isset($cookie[$name]) ? $cookie[$name] : $default;
          } else {
              $return = $cookie;
          }
  
          gplcart_settype($return, $type, $default);
          return $return;
      }
code_tokens: public function cookie ( $ name = null , $ default = null , $ type = null ) { $ cookie = $ this -> request [ 'cookie' ] ; gplcart_array_trim ( $ cookie , true ) ; if ( isset ( $ name ) ) { $ return = isset ( $ cookie [ $ name ] ) ? $ cookie [ $ name ] : $ default ; } else { $ return = $ cookie ; } gplcart_settype ( $ return , $ type , $ default ) ; return $ return ; }
docstring: Returns a data from COOKIE
  @param string $name
  @param mixed $default
  @param null|string $type
  @return mixed
docstring_tokens: Returns a data from COOKIE