<?php
namespace App\Entity;
use App\Repository\CartItemOptionRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(indexes={
* @ORM\Index(columns={"reference"})
* })
* @ORM\Entity(repositoryClass=CartItemOptionRepository::class)
*/
class CartItemOption
{
/**
* @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", length=255, 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")
*/
private $quantity;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $shippingDelay;
/**
* @ORM\ManyToOne(targetEntity=CartItem::class, inversedBy="options")
*/
private $item;
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(): ?CartItem
{
return $this->item;
}
public function setItem( ?CartItem $item ): self
{
$this->item = $item;
return $this;
}
}