vendor/store.shopware.com/ndsrecipemanager/src/Core/Content/Related/RelatedEntity.php line 9

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Nds\RecipeManager\Core\Content\Related;
  3. use Nds\RecipeManager\Core\Content\Recipe\RecipeEntity;
  4. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  5. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  6. class RelatedEntity extends Entity
  7. {
  8.     use EntityIdTrait;
  9.     /**
  10.      * @var string
  11.      */
  12.     protected $recipeId;
  13.     /**
  14.      * @var string
  15.      */
  16.     protected $relatedId;
  17.     /**
  18.      * @var RecipeEntity|null
  19.      */
  20.     protected $relatedRecipe;
  21.     /**
  22.      * @var int
  23.      */
  24.     protected $position;
  25.     /**
  26.      * @var \DateTimeInterface|null
  27.      */
  28.     protected $createdAt;
  29.     /**
  30.      * @var \DateTimeInterface|null
  31.      */
  32.     protected $updatedAt;
  33.     public function getRecipeId(): string
  34.     {
  35.         return $this->recipeId;
  36.     }
  37.     public function setRecipeId(string $recipeId): void
  38.     {
  39.         $this->recipeId $recipeId;
  40.     }
  41.     public function getRelatedId(): string
  42.     {
  43.         return $this->relatedId;
  44.     }
  45.     public function setRelatedId(string $relatedId): void
  46.     {
  47.         $this->relatedId $relatedId;
  48.     }
  49.     public function getRelatedRecipe(): ?RecipeEntity
  50.     {
  51.         return $this->relatedRecipe;
  52.     }
  53.     public function setRelatedRecipe(?RecipeEntity $relatedRecipe): void
  54.     {
  55.         $this->relatedRecipe $relatedRecipe;
  56.     }
  57.     public function getPosition(): int
  58.     {
  59.         return $this->position;
  60.     }
  61.     public function setPosition(int $position): void
  62.     {
  63.         $this->position $position;
  64.     }
  65.     public function getCreatedAt(): \DateTimeInterface
  66.     {
  67.         return $this->createdAt;
  68.     }
  69.     public function setCreatedAt(\DateTimeInterface $createdAt): void
  70.     {
  71.         $this->createdAt $createdAt;
  72.     }
  73.     public function getUpdatedAt(): ?\DateTimeInterface
  74.     {
  75.         return $this->updatedAt;
  76.     }
  77.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): void
  78.     {
  79.         $this->updatedAt $updatedAt;
  80.     }
  81. }