/**
  * Sets the parent comment (comment that this comment is a reply to).
  *
  * @param kyCommentBase $parent_comment Parent comment (comment that this comment is a reply to).
  * @return $this
  */
 public function setParentComment($parent_comment)
 {
     $this->parent_comment = ky_assure_object($parent_comment, get_class($this));
     $this->parent_comment_id = $this->parent_comment !== null ? $this->parent_comment->getId() : null;
     return $this;
 }
 /**
  * Creates a new Knowledgebase article comment.
  * WARNING: Data is not sent to Kayako unless you explicitly call create() on this method's result.
  *
  * @param kyKnowledgebaseArticle $kb_article KnowledgebaseArticle item.
  * @param kyUser|kyStaff|string $creator Creator (staff object, user object or user fullname) of this comment.
  * @param string $contents Contents of this comment.
  * @return kyKnowledgebaseComment
  */
 public static function createNew($kb_article, $creator, $contents)
 {
     /** @var $kbarticle_comment kyKnowledgebaseComment */
     $new_comment = parent::createNew($creator, $contents);
     $new_comment->setKbarticle($kb_article);
     return $new_comment;
 }
 /**
  * Creates a new news item comment.
  * WARNING: Data is not sent to Kayako unless you explicitly call create() on this method's result.
  *
  * @param kyNewsItem $knowledgebase_article News item.
  * @param kyUser|kyStaff|string $creator Creator (staff object, user object or user fullname) of this comment.
  * @param string $contents Contents of this comment.
  * @return kyNewsComment
  */
 public static function createNew($knowledgebase_article, $creator, $contents)
 {
     /** @var $new_comment kyNewsComment */
     $new_comment = parent::createNew($creator, $contents);
     $new_comment->setNewsItem($knowledgebase_article);
     return $new_comment;
 }
 /**
  * Creates a new troubelshooterstep comment.
  * WARNING: Data is not sent to Kayako unless you explicitly call create() on this method's result.
  *
  * @param kyTroubleshooterStep $troubleshooterstep TroubleshooterStep item.
  * @param kyUser|kyStaff|string $creator Creator (staff object, user object or user fullname) of this comment.
  * @param string $contents Contents of this comment.
  * @return kyTroubleshooterComment
  */
 public static function createNew($troubleshooterstep, $creator, $contents)
 {
     /** @var $new_comment kyTroubleshooterComment */
     $new_comment = parent::createNew($creator, $contents);
     $new_comment->setTroubleshooterStep($troubleshooterstep);
     return $new_comment;
 }