public function create(Comment &$comment)
    {
        $data = $comment->exportData();
        $endpoint = '/admin/comments.json';
        $respoinse = $this->request(
            $endpoint, 'POST', array(
            'comment' => $data
            )
        );
        $comment->setData($response['comment']);
    }
public function create(Comment &$comment)
    {
        $data = $comment->exportData();
        $endpoint = '/admin/comments.json';
        $respoinse = $this->request(
            $endpoint, 'POST', array(
            'comment' => $data
            )
        );
        $comment->setData($response['comment']);
    }
public function create ( Comment & $ comment ) { $ data = $ comment -> exportData ( ) ; $ endpoint = '/admin/comments.json' ; $ respoinse = $ this -> request ( $ endpoint , 'POST' , array ( 'comment' => $ data ) ) ; $ comment -> setData ( $ response [ 'comment' ] ) ; }
Create a new comment

@link   https://help.shopify.com/api/reference/comment#create
@param  Comment $comment
@return void
Create a new comment