code: private function getComments(array $entry)
      {
          $result = [];
          foreach ($entry['comments'] as $data) {
              $comment = new Comment();
              $comment->setComment((string) $data['text']);
              $comment->setType($data['text'] ? Comment::TYPE_CUSTOMER : Comment::TYPE_INTERNAL);
  
              $result[] = $comment;
          }
  
          return $result;
      }
docs: @param array $entry
  
  @return Comment[]