This commit is contained in:
@@ -21,12 +21,14 @@ class Product
|
||||
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $shopwareId = null;
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $modellnr = null;
|
||||
#[ORM\Column(length: 255)]
|
||||
private ?string $modellbez = null;
|
||||
|
||||
#[ORM\Column(type: Types::DATETIME_MUTABLE)]
|
||||
private ?\DateTimeInterface $updateTime = null;
|
||||
|
||||
#[ORM\OneToOne(inversedBy: 'product', cascade: ['persist', 'remove'])]
|
||||
private ?Stock $stock = null;
|
||||
|
||||
public function getId(): ?int
|
||||
{
|
||||
@@ -44,6 +46,28 @@ class Product
|
||||
|
||||
return $this;
|
||||
}
|
||||
public function getModellNr(): ?string
|
||||
{
|
||||
return $this->modellnr;
|
||||
}
|
||||
|
||||
public function setModellNr(string $modellnr): self
|
||||
{
|
||||
$this->modellnr = $modellnr;
|
||||
|
||||
return $this;
|
||||
}
|
||||
public function getModellBez(): ?string
|
||||
{
|
||||
return $this->modellbez;
|
||||
}
|
||||
|
||||
public function setModellBez(string $modellbez): self
|
||||
{
|
||||
$this->modellbez = $modellbez;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getShopwareId(): ?string
|
||||
{
|
||||
@@ -69,15 +93,4 @@ class Product
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getStock(): ?Stock
|
||||
{
|
||||
return $this->stock;
|
||||
}
|
||||
|
||||
public function setStock(?Stock $stock): self
|
||||
{
|
||||
$this->stock = $stock;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user