src/Controllers/Product.php
/**
     * Create a product based on a WooCommerce Product
     * @return $this
     * @throws Error
     */
Create a product based on a WooCommerce Product
@return $this
@throws Error
Create a product based on a WooCommerce Product @return $this @throws Error
public function update()
    {
        $this->setProduct();
        $update = Curl::simple('products/update', $this->mapPropsToValues());
        if (isset($update['product_id'])) {
            $this->product_id = $update['product_id'];
            return $this;
        }
        throw new Error(__('Erro ao atualizar o artigo ') . $this->name);
    }
public function update ( ) { $ this -> setProduct ( ) ; $ update = Curl :: simple ( 'products/update' , $ this -> mapPropsToValues ( ) ) ; if ( isset ( $ update [ 'product_id' ] ) ) { $ this -> product_id = $ update [ 'product_id' ] ; return $ this ; } throw new Error ( __ ( 'Erro ao atualizar o artigo ' ) . $ this -> name ) ; }
Create a product based on a WooCommerce Product
 @return $this
 @throws Error
Create a product based on a WooCommerce Product @return $this @throws Error