Example #1
0
 /**
  * Clone quote item
  *
  * @return $this
  */
 public function __clone()
 {
     parent::__clone();
     $options = $this->getOptions();
     $this->_quote = null;
     $this->_options = array();
     $this->_optionsByCode = array();
     foreach ($options as $option) {
         $this->addOption(clone $option);
     }
     return $this;
 }