vendor/store.shopware.com/ndsrecipemanager/src/Core/Content/Ingredient/IngredientEntity.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Nds\RecipeManager\Core\Content\Ingredient;
  3. use Shopware\Core\Content\Product\ProductEntity;
  4. use Nds\RecipeManager\Core\Content\Unit\UnitEntity;
  5. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  7. use Nds\RecipeManager\Core\Content\Ingredient\Aggregate\IngredientTranslation\IngredientTranslationCollection;
  8. class IngredientEntity extends Entity
  9. {
  10.     use EntityIdTrait;
  11.     /**
  12.      * @var string
  13.      */
  14.     protected $recipeId;
  15.     /**
  16.      * @var string|null
  17.      */
  18.     protected $productId;
  19.     /**
  20.      * @var string|null
  21.      */
  22.     protected $unitId;
  23.     /**
  24.      * @var string|null
  25.      */
  26.     protected $name;
  27.     /**
  28.      * @var float|null
  29.      */
  30.     protected $quantity;
  31.     /**
  32.      * @var int|null
  33.      */
  34.     protected $position;
  35.     /**
  36.      * @var ProductEntity|null
  37.      */
  38.     protected $product;
  39.     /**
  40.      * @var UnitEntity|null
  41.      */
  42.     protected $unit;
  43.     /**
  44.      * @var IngredientTranslationCollection|null
  45.      */
  46.     protected $translations;
  47.     /**
  48.      * @var \DateTimeInterface|null
  49.      */
  50.     protected $createdAt;
  51.     /**
  52.      * @var \DateTimeInterface|null
  53.      */
  54.     protected $updatedAt;
  55.     public function getRecipeId(): string
  56.     {
  57.         return $this->recipeId;
  58.     }
  59.     public function setRecipeId(string $recipeId): void
  60.     {
  61.         $this->recipeId $recipeId;
  62.     }
  63.     public function getProductId(): ?string
  64.     {
  65.         return $this->productId;
  66.     }
  67.     public function setProductId(?string $productId): void
  68.     {
  69.         $this->productId $productId;
  70.     }
  71.     public function getUnitId(): ?string
  72.     {
  73.         return $this->unitId;
  74.     }
  75.     public function setUnitId(?string $unitId): void
  76.     {
  77.         $this->unitId $unitId;
  78.     }
  79.     public function getName(): ?string
  80.     {
  81.         return $this->name;
  82.     }
  83.     public function setName(?string $name): void
  84.     {
  85.         $this->name $name;
  86.     }
  87.     public function getQuantity(): ?float
  88.     {
  89.         return $this->quantity;
  90.     }
  91.     public function setQuantity(?float $quantity): void
  92.     {
  93.         $this->quantity $quantity;
  94.     }
  95.     public function getPosition(): ?int
  96.     {
  97.         return $this->position;
  98.     }
  99.     public function setPosition(?int $position): void
  100.     {
  101.         $this->position $position;
  102.     }
  103.     public function getProduct(): ?ProductEntity
  104.     {
  105.         return $this->product;
  106.     }
  107.     public function setProduct(?ProductEntity $product): void
  108.     {
  109.         $this->product $product;
  110.     }
  111.     public function getUnit(): ?UnitEntity
  112.     {
  113.         return $this->unit;
  114.     }
  115.     public function setUnit(?UnitEntity $unit): void
  116.     {
  117.         $this->unit $unit;
  118.     }
  119.     public function getTranslations(): ?IngredientTranslationCollection
  120.     {
  121.         return $this->translations;
  122.     }
  123.     public function setTranslations(IngredientTranslationCollection $translations): void
  124.     {
  125.         $this->translations $translations;
  126.     }
  127.     public function getCreatedAt(): \DateTimeInterface
  128.     {
  129.         return $this->createdAt;
  130.     }
  131.     public function setCreatedAt(\DateTimeInterface $createdAt): void
  132.     {
  133.         $this->createdAt $createdAt;
  134.     }
  135.     public function getUpdatedAt(): ?\DateTimeInterface
  136.     {
  137.         return $this->updatedAt;
  138.     }
  139.     public function setUpdatedAt(?\DateTimeInterface $updatedAt): void
  140.     {
  141.         $this->updatedAt $updatedAt;
  142.     }
  143. }