/**
  * Transforms a string (number) to an object (issue).
  *
  * @param VersionControl\GithubIssueBundle\Entity\Issues\IssueComment $issueCommentEntity
  *
  * @return array|null
  *
  * @throws TransformationFailedException if object (issue) is not found
  */
 public function reverseTransform($issueCommentEntity)
 {
     if ($issueCommentEntity === null) {
         // causes a validation error
         throw new TransformationFailedException('issueCommentEntity is null');
     }
     $issueComment = array('body' => $issueCommentEntity->getComment());
     return $issueComment;
 }
 /**
  * Creates a New issue Comment on github.
  *
  * @param \VersionControl\GithubIssueBundle\Entity\Issues\IssueComment $issueCommentEntity
  */
 public function createIssueComment(\VersionControl\GithubIssueBundle\Entity\Issues\IssueComment $issueCommentEntity)
 {
     $this->authenticate();
     $issueId = $issueCommentEntity->getIssue()->getId();
     $comment = $this->client->api('issue')->comments()->create($this->issueIntegrator->getOwnerName(), $this->issueIntegrator->getRepoName(), $issueId, array('body' => $issueCommentEntity->getComment()));
     $issueCommentTransfomer = new IssueCommentToEntityTransformer();
     return $issueCommentTransfomer->transform($comment);
 }