public function instance($name)
    {
        $name = $name ?: self::DEFAULT_INSTANCE_NAME;
        $name = str_replace('shopping-cart.', '', $name);

        $this->instanceName = sprintf('%s.%s', 'shopping-cart', $name);

        return $this;
    }
public function instance($name)
    {
        $name = $name ?: self::DEFAULT_INSTANCE_NAME;
        $name = str_replace('shopping-cart.', '', $name);

        $this->instanceName = sprintf('%s.%s', 'shopping-cart', $name);

        return $this;
    }
public function instance ( $ name ) { $ name = $ name ? : self :: DEFAULT_INSTANCE_NAME ; $ name = str_replace ( 'shopping-cart.' , '' , $ name ) ; $ this -> instanceName = sprintf ( '%s.%s' , 'shopping-cart' , $ name ) ; return $ this ; }
Set shopping cart instance name.

@param string $name

@return $this
Set shopping cart instance name .