<?php
namespace App\Entity;
use App\Repository\SaleOrderItemOptionRepository;
use App\Traits\DateTrait;
use Doctrine\ORM\Mapping as ORM;
/**
* * @ORM\Table(indexes={
* @ORM\Index(columns={"reference"})
* })
* @ORM\Entity(repositoryClass=SaleOrderItemOptionRepository::class)
*/
class SaleOrderItemOption
{
const REFERENCE_BENEFICIAIRE_NAME = "beneficiaireLastName";
const REFERENCE_BENEFICIAIRE_EMAIL = "beneficiaireEmail";
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $reference;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
/**
* @ORM\Column(type="string", length=255)
*/
private $value;
/**
* @ORM\Column(type="decimal", precision=12, scale=4, nullable=true)
*/
private $priceHT;
/**
* @ORM\Column(type="decimal", precision=12, scale=4, nullable=true)
*/
private $priceTTC;
/**
* @ORM\Column(type="decimal", precision=12, scale=4, nullable=true)
*/
private $priceUnitHt;
/**
* @ORM\Column(type="decimal", precision=12, scale=4, nullable=true)
*/
private $priceUnitTTC;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $quantity;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $shippingDelay;
/**
* @ORM\ManyToOne(targetEntity=SaleOrderItem::class, inversedBy="options")
*/
private $item;
use DateTrait;
public function getId(): ?int
{
return $this->id;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference( string $reference ): self
{
$this->reference = $reference;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName( string $name ): self
{
$this->name = $name;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription( ?string $description ): self
{
$this->description = $description;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue( string $value ): self
{
$this->value = $value;
return $this;
}
public function getPriceHT(): ?string
{
return $this->priceHT;
}
public function setPriceHT( ?string $priceHT ): self
{
$this->priceHT = $priceHT;
return $this;
}
public function getPriceTTC(): ?string
{
return $this->priceTTC;
}
public function setPriceTTC( ?string $priceTTC ): self
{
$this->priceTTC = $priceTTC;
return $this;
}
public function getPriceUnitHt(): ?string
{
return $this->priceUnitHt;
}
public function setPriceUnitHt( ?string $priceUnitHt ): self
{
$this->priceUnitHt = $priceUnitHt;
return $this;
}
public function getPriceUnitTTC(): ?string
{
return $this->priceUnitTTC;
}
public function setPriceUnitTTC( ?string $priceUnitTTC ): self
{
$this->priceUnitTTC = $priceUnitTTC;
return $this;
}
public function getQuantity(): ?int
{
return $this->quantity;
}
public function setQuantity( ?int $quantity ): self
{
$this->quantity = $quantity;
return $this;
}
public function getShippingDelay(): ?int
{
return $this->shippingDelay;
}
public function setShippingDelay( ?int $shippingDelay ): self
{
$this->shippingDelay = $shippingDelay;
return $this;
}
public function getItem(): ?SaleOrderItem
{
return $this->item;
}
public function setItem( ?SaleOrderItem $item ): self
{
$this->item = $item;
return $this;
}
}