src/Entity/SaleOrderItemOption.php line 15

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