src/Entity/CartItemOption.php line 14

Open in your IDE?
  1. <?php
  2.     namespace App\Entity;
  3.     use App\Repository\CartItemOptionRepository;
  4.     use Doctrine\ORM\Mapping as ORM;
  5.     /**
  6.      * @ORM\Table(indexes={
  7.      *      @ORM\Index(columns={"reference"})
  8.      * })
  9.      * @ORM\Entity(repositoryClass=CartItemOptionRepository::class)
  10.      */
  11.     class CartItemOption
  12.     {
  13.         /**
  14.          * @ORM\Id
  15.          * @ORM\GeneratedValue
  16.          * @ORM\Column(type="integer")
  17.          */
  18.         private $id;
  19.         /**
  20.          * @ORM\Column(type="string", length=255)
  21.          */
  22.         private $reference;
  23.         /**
  24.          * @ORM\Column(type="string", length=255)
  25.          */
  26.         private $name;
  27.         /**
  28.          * @ORM\Column(type="text", length=255, nullable=true)
  29.          */
  30.         private $description;
  31.         /**
  32.          * @ORM\Column(type="string", length=255)
  33.          */
  34.         private $value;
  35.         /**
  36.          * @ORM\Column(type="decimal", precision=12, scale=4, nullable=true)
  37.          */
  38.         private $priceHT;
  39.         /**
  40.          * @ORM\Column(type="decimal", precision=12, scale=4, nullable=true)
  41.          */
  42.         private $priceTTC;
  43.         /**
  44.          * @ORM\Column(type="decimal", precision=12, scale=4, nullable=true)
  45.          */
  46.         private $priceUnitHT;
  47.         /**
  48.          * @ORM\Column(type="decimal", precision=12, scale=4, nullable=true)
  49.          */
  50.         private $priceUnitTTC;
  51.         /**
  52.          * @ORM\Column(type="integer")
  53.          */
  54.         private $quantity;
  55.         /**
  56.          * @ORM\Column(type="integer", nullable=true)
  57.          */
  58.         private $shippingDelay;
  59.         /**
  60.          * @ORM\ManyToOne(targetEntity=CartItem::class, inversedBy="options")
  61.          */
  62.         private $item;
  63.         public function getId(): ?int
  64.         {
  65.             return $this->id;
  66.         }
  67.         public function getReference(): ?string
  68.         {
  69.             return $this->reference;
  70.         }
  71.         public function setReferencestring $reference ): self
  72.         {
  73.             $this->reference $reference;
  74.             return $this;
  75.         }
  76.         public function getName(): ?string
  77.         {
  78.             return $this->name;
  79.         }
  80.         public function setNamestring $name ): self
  81.         {
  82.             $this->name $name;
  83.             return $this;
  84.         }
  85.         public function getDescription(): ?string
  86.         {
  87.             return $this->description;
  88.         }
  89.         public function setDescription( ?string $description ): self
  90.         {
  91.             $this->description $description;
  92.             return $this;
  93.         }
  94.         public function getValue(): ?string
  95.         {
  96.             return $this->value;
  97.         }
  98.         public function setValuestring $value ): self
  99.         {
  100.             $this->value $value;
  101.             return $this;
  102.         }
  103.         public function getPriceHT(): ?string
  104.         {
  105.             return $this->priceHT;
  106.         }
  107.         public function setPriceHT( ?string $priceHT ): self
  108.         {
  109.             $this->priceHT $priceHT;
  110.             return $this;
  111.         }
  112.         public function getPriceTTC(): ?string
  113.         {
  114.             return $this->priceTTC;
  115.         }
  116.         public function setPriceTTC( ?string $priceTTC ): self
  117.         {
  118.             $this->priceTTC $priceTTC;
  119.             return $this;
  120.         }
  121.         public function getPriceUnitHT(): ?string
  122.         {
  123.             return $this->priceUnitHT;
  124.         }
  125.         public function setPriceUnitHT( ?string $priceUnitHT ): self
  126.         {
  127.             $this->priceUnitHT $priceUnitHT;
  128.             return $this;
  129.         }
  130.         public function getPriceUnitTTC(): ?string
  131.         {
  132.             return $this->priceUnitTTC;
  133.         }
  134.         public function setPriceUnitTTC( ?string $priceUnitTTC ): self
  135.         {
  136.             $this->priceUnitTTC $priceUnitTTC;
  137.             return $this;
  138.         }
  139.         public function getQuantity(): ?int
  140.         {
  141.             return $this->quantity;
  142.         }
  143.         public function setQuantityint $quantity ): self
  144.         {
  145.             $this->quantity $quantity;
  146.             return $this;
  147.         }
  148.         public function getShippingDelay(): ?int
  149.         {
  150.             return $this->shippingDelay;
  151.         }
  152.         public function setShippingDelay( ?int $shippingDelay ): self
  153.         {
  154.             $this->shippingDelay $shippingDelay;
  155.             return $this;
  156.         }
  157.         public function getItem(): ?CartItem
  158.         {
  159.             return $this->item;
  160.         }
  161.         public function setItem( ?CartItem $item ): self
  162.         {
  163.             $this->item $item;
  164.             return $this;
  165.         }
  166.     }