public function update(Theme &$theme)
    {
        $data = $theme->exportData();
        $endpoint = '/admin/themes/'.$theme->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'theme' => $data
            )
        );
        $theme->setData($response['theme']);
    }
public function update(Theme &$theme)
    {
        $data = $theme->exportData();
        $endpoint = '/admin/themes/'.$theme->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'theme' => $data
            )
        );
        $theme->setData($response['theme']);
    }
public function update ( Theme & $ theme ) { $ data = $ theme -> exportData ( ) ; $ endpoint = '/admin/themes/' . $ theme -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'PUT' , array ( 'theme' => $ data ) ) ; $ theme -> setData ( $ response [ 'theme' ] ) ; }
Update a theme

@link   https://help.shopify.com/api/reference/theme#update
@param  Theme $theme
@return void
Update a theme