custom/plugins/SasBlogModule/src/Content/Blog/BlogEntriesEntity.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Sas\BlogModule\Content\Blog;
  3. use DateTimeInterface;
  4. use Sas\BlogModule\Content\Blog\BlogTranslation\BlogTranslationCollection;
  5. use Sas\BlogModule\Content\BlogAuthor\BlogAuthorEntity;
  6. use Sas\BlogModule\Content\BlogCategory\BlogCategoryCollection;
  7. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  8. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  9. class BlogEntriesEntity extends Entity
  10. {
  11.     use EntityIdTrait;
  12.     /**
  13.      * @var bool
  14.      */
  15.     protected $active;
  16.     /**
  17.      * @var bool
  18.      */
  19.     protected $detailTeaserImage;
  20.     /**
  21.      * @var BlogTranslationCollection|null
  22.      */
  23.     protected $translations;
  24.     /**
  25.      * @var BlogCategoryCollection|null
  26.      */
  27.     protected $blogCategories;
  28.     /**
  29.      * @var string
  30.      */
  31.     protected $authorId;
  32.     /**
  33.      * @var BlogAuthorEntity|null
  34.      */
  35.     protected $author;
  36.     /**
  37.      * @var DateTimeInterface
  38.      */
  39.     protected $publishedAt;
  40.     public function getAuthorId(): string
  41.     {
  42.         return $this->authorId;
  43.     }
  44.     public function setAuthorId(string $authorId): void
  45.     {
  46.         $this->authorId $authorId;
  47.     }
  48.     public function getAuthor(): ?BlogAuthorEntity
  49.     {
  50.         return $this->author;
  51.     }
  52.     public function setAuthor(BlogAuthorEntity $author): void
  53.     {
  54.         $this->author $author;
  55.     }
  56.     public function getActive(): bool
  57.     {
  58.         return $this->active;
  59.     }
  60.     public function setActive(bool $active): void
  61.     {
  62.         $this->active $active;
  63.     }
  64.     public function getDetailTeaserImage(): bool
  65.     {
  66.         return $this->detailTeaserImage;
  67.     }
  68.     public function setDetailTeaserImage(bool $detailTeaserImage): void
  69.     {
  70.         $this->detailTeaserImage $detailTeaserImage;
  71.     }
  72.     public function getTranslations(): ?BlogTranslationCollection
  73.     {
  74.         return $this->translations;
  75.     }
  76.     public function setTranslations(?BlogTranslationCollection $translations): void
  77.     {
  78.         $this->translations $translations;
  79.     }
  80.     public function getBlogCategories(): ?BlogCategoryCollection
  81.     {
  82.         return $this->blogCategories;
  83.     }
  84.     public function setBlogCategories(BlogCategoryCollection $blogCategories): void
  85.     {
  86.         $this->blogCategories $blogCategories;
  87.     }
  88.     /**
  89.      * @return DateTimeInterface
  90.      */
  91.     public function getPublishedAt(): DateTimeInterface
  92.     {
  93.         return $this->publishedAt;
  94.     }
  95.     /**
  96.      * @param DateTimeInterface $publishedAt
  97.      */
  98.     public function setPublishedAt(DateTimeInterface $publishedAt): void
  99.     {
  100.         $this->publishedAt $publishedAt;
  101.     }
  102. }