original_string: public function setCookie($code)
      {
          $lifespan = $this->config->get('currency_cookie_lifespan', 365 * 24 * 60 * 60);
          $this->request->setCookie('currency', $code, $lifespan);
      }
code: public function setCookie($code)
      {
          $lifespan = $this->config->get('currency_cookie_lifespan', 365 * 24 * 60 * 60);
          $this->request->setCookie('currency', $code, $lifespan);
      }
code_tokens: public function setCookie ( $ code ) { $ lifespan = $ this -> config -> get ( 'currency_cookie_lifespan' , 365 * 24 * 60 * 60 ) ; $ this -> request -> setCookie ( 'currency' , $ code , $ lifespan ) ; }
docstring: Saves a currency code in cookie
  @param string $code
docstring_tokens: Saves a currency code in cookie