code: protected function generateContent($type, $id, $name, $language)
      {
          $content = new Content();
  
          $content->setContentId($id);
          $content->setContentType($type);
          $content->setDeleted(false);
          $content->setName($name);
          $content->setLanguage($language);
          $content->setStatus($this->getReference('status-published'));
          $content->setVersion('1');
          $content->setSiteId('2');
          $date = new \DateTime("now");
          $content->setVersionName($content->getName().'_'. $date->format("Y-m-d_H:i:s"));
  
          return $content;
      }
docs: Generate a content
  
  @param string $type
  @param int    $id
  @param string $name
  @param string $language
  
  @return Content