public function spam(Comment &$comment)
    {
        $endpoint = '/admin/comments/'.$comment->id.'/spam.json';
        $response = $this->request($endpoint, 'POST');
        $comment->setData($response['comment']);
    }
public function spam(Comment &$comment)
    {
        $endpoint = '/admin/comments/'.$comment->id.'/spam.json';
        $response = $this->request($endpoint, 'POST');
        $comment->setData($response['comment']);
    }
public function spam ( Comment & $ comment ) { $ endpoint = '/admin/comments/' . $ comment -> id . '/spam.json' ; $ response = $ this -> request ( $ endpoint , 'POST' ) ; $ comment -> setData ( $ response [ 'comment' ] ) ; }
Mark comment as spam

@link   https://help.shopify.com/api/reference/comment#spam
@param  Comment $comment
@return void
Mark comment as spam