vendor/store.shopware.com/ndsrecipemanager/src/Core/Content/Category/CategoryEntity.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Nds\RecipeManager\Core\Content\Category;
  3. use Shopware\Core\Content\Media\MediaEntity;
  4. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  5. use Nds\RecipeManager\Core\Content\Recipe\RecipeCollection;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  7. use Nds\RecipeManager\Core\Content\Category\Aggregate\CategoryTranslation\CategoryTranslationCollection;
  8. class CategoryEntity extends Entity
  9. {
  10.     use EntityIdTrait;
  11.     /**
  12.      * @var string|null
  13.      */
  14.     protected $name;
  15.     /**
  16.      * @var string|null
  17.      */
  18.     protected $subhead;
  19.     /**
  20.      * @var string|null
  21.      */
  22.     protected $description;
  23.     /**
  24.      * @var string|null
  25.      */
  26.     protected $metaTitle;
  27.     /**
  28.      * @var string|null
  29.      */
  30.     protected $metaDescription;
  31.     /**
  32.      * @var string|null
  33.      */
  34.     protected $slug;
  35.     /**
  36.      * @var string|null
  37.      */
  38.     protected $robots;
  39.     /**
  40.      * @var bool|null
  41.      */
  42.     protected $active;
  43.     /**
  44.      * @var CategoryTranslationCollection|null
  45.      */
  46.     protected $translations;
  47.     /**
  48.      * @var RecipeCollection|null
  49.      */
  50.     protected $recipes;
  51.     /**
  52.      * @var MediaEntity|null
  53.      */
  54.     protected $media;
  55.     /**
  56.      * @var string|null
  57.      */
  58.     protected $mediaId;
  59.     /**
  60.      * @var \DateTimeInterface|null
  61.      */
  62.     protected $createdAt;
  63.     /**
  64.      * @var \DateTimeInterface|null
  65.      */
  66.     protected $updatedAt;
  67.     public function getName(): ?string
  68.     {
  69.         return $this->name;
  70.     }
  71.     public function setName(string $name): void
  72.     {
  73.         $this->name $name;
  74.     }
  75.     public function getSubhead(): ?string
  76.     {
  77.         return $this->subhead;
  78.     }
  79.     public function setSubhead(string $subhead): void
  80.     {
  81.         $this->subhead $subhead;
  82.     }
  83.     public function getDescription(): ?string
  84.     {
  85.         return $this->description;
  86.     }
  87.     public function setDescription(?string $description): void
  88.     {
  89.         $this->description $description;
  90.     }
  91.     public function getMetaTitle(): string
  92.     {
  93.         return $this->metaTitle;
  94.     }
  95.     public function setMetaTitle(string $metaTitle): void
  96.     {
  97.         $this->metaTitle $metaTitle;
  98.     }
  99.     public function getMetaDescription(): string
  100.     {
  101.         return $this->metaDescription;
  102.     }
  103.     public function setMetaDescription(string $metaDescription): void
  104.     {
  105.         $this->metaDescription $metaDescription;
  106.     }
  107.     public function getSlug(): ?string
  108.     {
  109.         return $this->slug;
  110.     }
  111.     public function setSlug(string $slug): void
  112.     {
  113.         $this->slug $slug;
  114.     }
  115.     public function getRobots(): ?string
  116.     {
  117.         return $this->robots;
  118.     }
  119.     public function setRobots(?string $robots): void
  120.     {
  121.         $this->robots $robots;
  122.     }
  123.     public function getActive(): ?bool
  124.     {
  125.         return $this->active;
  126.     }
  127.     public function setActive(?bool $active): void
  128.     {
  129.         $this->active $active;
  130.     }
  131.     public function getTranslations(): ?CategoryTranslationCollection
  132.     {
  133.         return $this->translations;
  134.     }
  135.     public function setTranslations(CategoryTranslationCollection $translations): void
  136.     {
  137.         $this->translations $translations;
  138.     }
  139.     public function getRecipes(): ?RecipeCollection
  140.     {
  141.         return $this->recipes;
  142.     }
  143.     public function setRecipes(RecipeCollection $recipes): void
  144.     {
  145.         $this->recipes $recipes;
  146.     }
  147.     public function getMedia(): ?MediaEntity
  148.     {
  149.         return $this->media;
  150.     }
  151.     public function setMedia(?MediaEntity $media): void
  152.     {
  153.         $this->media $media;
  154.     }
  155.     public function getMediaId(): ?string
  156.     {
  157.         return $this->mediaId;
  158.     }
  159.     public function setMediaId(?string $mediaId): void
  160.     {
  161.         $this->mediaId $mediaId;
  162.     }
  163.     public function getCreatedAt(): \DateTimeInterface
  164.     {
  165.         return $this->createdAt;
  166.     }
  167.     public function setCreatedAt(\DateTimeInterface $createdAt): void
  168.     {
  169.         $this->createdAt $createdAt;
  170.     }
  171.     public function getUpdatedAt(): ?\DateTimeInterface
  172.     {
  173.         return $this->updatedAt;
  174.     }
  175.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): void
  176.     {
  177.         $this->updatedAt $updatedAt;
  178.     }
  179. }