original_string: public function set(array $product_ids)
      {
          $lifespan = $this->getCookieLifespan();
          $result = $this->request->setCookie('product_compare', implode('|', (array) $product_ids), $lifespan);
  
          gplcart_static_clear();
          return $result;
      }
code: public function set(array $product_ids)
      {
          $lifespan = $this->getCookieLifespan();
          $result = $this->request->setCookie('product_compare', implode('|', (array) $product_ids), $lifespan);
  
          gplcart_static_clear();
          return $result;
      }
code_tokens: public function set ( array $ product_ids ) { $ lifespan = $ this -> getCookieLifespan ( ) ; $ result = $ this -> request -> setCookie ( 'product_compare' , implode ( '|' , ( array ) $ product_ids ) , $ lifespan ) ; gplcart_static_clear ( ) ; return $ result ; }
docstring: Saves an array of product ID in cookie
  @param array $product_ids
  @return boolean
docstring_tokens: Saves an array of product ID in cookie