public function update(Report &$report)
    {
        $data = $report->exportData();
        $endpoint = '/admin/reports/'.$report->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'report' => $data
            )
        );
        $report->setData($response['report']);
    }
public function update(Report &$report)
    {
        $data = $report->exportData();
        $endpoint = '/admin/reports/'.$report->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'report' => $data
            )
        );
        $report->setData($response['report']);
    }
public function update ( Report & $ report ) { $ data = $ report -> exportData ( ) ; $ endpoint = '/admin/reports/' . $ report -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'PUT' , array ( 'report' => $ data ) ) ; $ report -> setData ( $ response [ 'report' ] ) ; }
Modify an existing Report

@link   https://help.shopify.com/api/reference/report#update
@param  Report $report
@return void
Modify an existing Report