WC_Cart::__clone
When cloning, ensure object properties are handled.
These properties store a reference to the cart, so we use new instead of clone.
Method of the class: WC_Cart{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Cart = new WC_Cart(); $WC_Cart->__clone();
WC_Cart::__clone() WC Cart:: clone code WC 10.3.6
public function __clone() {
$this->session = clone $this->session;
$this->fees_api = clone $this->fees_api;
$this->session->set_cart( $this );
}