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

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