/** * @param int $issueId * @param Comment $comment */ public function createComment($issueId, Comment $comment) { $data = ['body' => $comment->getFormatted()]; $this->post("issues/{$issueId}/comments", $data); }