'CURRENT_TIMESTAMP'])] private ?DateTimeInterface $update_time = null; public function getId(): ?int { return $this->id; } public function setId(int $id): ?self { $this->id = $id; return $this; } public function getInstock(): ?int { return $this->instock; } public function setInstock(int $instock): self { $this->instock = $instock; return $this; } public function getProductId(): ?int { return $this->product_id; } public function setProductId(int $product_id): self { $this->product_id = $product_id; return $this; } public function getWarehouseId(): ?int { return $this->warehouse_id; } public function setWarehouseId(int $warehouse_id): self { $this->warehouse_id = $warehouse_id; return $this; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { // unset the owning side of the relation if necessary if ($product === null && $this->product !== null) { $this->product->setStock(null); } // set the owning side of the relation if necessary if ($product !== null && $product->getStock() !== $this) { $product->setStock($this); } $this->product = $product; return $this; } public function getWarehouse(): ?Warehouse { return $this->warehouse; } public function setWarehouse(?Warehouse $warehouse): self { $this->warehouse = $warehouse; return $this; } public function getUpdateTime(): ?DateTimeInterface { return $this->update_time; } public function setUpdateTime(?DateTimeInterface $update_time): self { $this->update_time = $update_time; return $this; } }