<?php
namespace App\Entity\Whatsapp;
use App\Repository\Whatsapp\WhatsappOrderProductRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="vulco_whatsapp_order_product")
* @ORM\Entity(repositoryClass=WhatsappOrderProductRepository::class)
*
* @see \App\Model\Whatsapp\Webhook\ProductItem
*/
class WhatsappOrderProduct
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
protected int $id;
/**
* @ORM\ManyToOne(targetEntity="WhatsappOrder", inversedBy="products")
*/
private WhatsappOrder $whatsappOrder;
/**
* @ORM\Column(type="string", length=255, nullable=false)
*/
private string $productRetailerId;
/**
* @ORM\Column(type="integer", nullable=false)
*/
private string $quantity;
/**
* @ORM\Column(type="string", length=127, nullable=false)
*/
private string $itemPrice;
/**
* @ORM\Column(type="string", length=31, nullable=false)
*/
private string $currency;
public function __construct(
string $ProductRetailerId,
string $quantity,
string $itemPrice,
string $currency,
)
{
$this->productRetailerId = $ProductRetailerId;
$this->quantity = $quantity;
$this->itemPrice = $itemPrice;
$this->currency = $currency;
}
public function getId(): int
{
return $this->id;
}
public function getWhatsappOrder(): WhatsappOrder
{
return $this->whatsappOrder;
}
public function setWhatsappOrder(WhatsappOrder $whatsappOrder): self
{
$this->whatsappOrder = $whatsappOrder;
return $this;
}
public function getProductRetailerId(): ?string
{
return $this->productRetailerId;
}
public function setProductRetailerId(?string $productRetailerId): self
{
$this->productRetailerId = $productRetailerId;
return $this;
}
public function getQuantity(): string
{
return $this->quantity;
}
public function setQuantity(string $quantity): self
{
$this->quantity = $quantity;
return $this;
}
public function getItemPrice(): string
{
return $this->itemPrice;
}
public function setItemPrice(string $itemPrice): self
{
$this->itemPrice = $itemPrice;
return $this;
}
public function getCurrency(): string
{
return $this->currency;
}
public function setCurrency(string $currency): self
{
$this->currency = $currency;
return $this;
}
}