/**
  * Encodes a $commentModel in the same method as returned by the
  * @param CommentModel $commentModel
  * @return array - The DTO.
  */
 public static function encodeComment($commentModel)
 {
     $dto = QuestionCommentDtoEncoder::encode($commentModel);
     return $dto;
 }
 public static function encode($model)
 {
     $e = new QuestionCommentDtoEncoder();
     return $e->_encode($model);
 }