vendor/store.shopware.com/ndsrecipemanager/src/Core/Content/Difficulty/DifficultyEntity.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Nds\RecipeManager\Core\Content\Difficulty;
  3. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  4. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  5. use Nds\RecipeManager\Core\Content\Difficulty\Aggregate\DifficultyTranslation\DifficultyTranslationCollection;
  6. class DifficultyEntity extends Entity
  7. {
  8.     use EntityIdTrait;
  9.     /**
  10.      * @var string|null
  11.      */
  12.     protected $name;
  13.     /**
  14.      * @var bool|null
  15.      */
  16.     protected $active;
  17.     /**
  18.      * @var DifficultyTranslationCollection|null
  19.      */
  20.     protected $translations;
  21.     /**
  22.      * @var \DateTimeInterface|null
  23.      */
  24.     protected $createdAt;
  25.     /**
  26.      * @var \DateTimeInterface|null
  27.      */
  28.     protected $updatedAt;
  29.     public function getName(): ?string
  30.     {
  31.         return $this->name;
  32.     }
  33.     public function setName(string $name): void
  34.     {
  35.         $this->name $name;
  36.     }
  37.     public function getActive(): ?bool
  38.     {
  39.         return $this->active;
  40.     }
  41.     public function setActive(?bool $active): void
  42.     {
  43.         $this->active $active;
  44.     }
  45.     public function getTranslations(): ?DifficultyTranslationCollection
  46.     {
  47.         return $this->translations;
  48.     }
  49.     public function setTranslations(?DifficultyTranslationCollection $translations): void
  50.     {
  51.         $this->translations $translations;
  52.     }
  53.     public function getCreatedAt(): \DateTimeInterface
  54.     {
  55.         return $this->createdAt;
  56.     }
  57.     public function setCreatedAt(\DateTimeInterface $createdAt): void
  58.     {
  59.         $this->createdAt $createdAt;
  60.     }
  61.     public function getUpdatedAt(): ?\DateTimeInterface
  62.     {
  63.         return $this->updatedAt;
  64.     }
  65.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): void
  66.     {
  67.         $this->updatedAt $updatedAt;
  68.     }
  69. }