src/Entity/OrderProductEquipment.php line 30

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
  4. use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
  5. use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
  6. use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
  7. use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
  8. use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
  9. use Doctrine\Common\Collections\ArrayCollection;
  10. use Doctrine\Common\Collections\Collection;
  11. use Doctrine\ORM\Mapping as ORM;
  12. use Symfony\Component\Validator\Constraints as Assert;
  13. use Symfony\Component\HttpFoundation\File\UploadedFile;
  14. use Symfony\Component\HttpFoundation\File\File;
  15. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  16. /**
  17.  * @ORM\Entity
  18.  * @ORM\Table(name="order_product_equipment")
  19.  */
  20. class OrderProductEquipment implements BlameableInterfaceTimestampableInterfaceSoftDeletableInterface  {
  21.     use BlameableTrait;
  22.     use TimestampableTrait;
  23.     
  24.     use SoftDeletableTrait;
  25.     
  26. /**
  27.      * @ORM\Id
  28.      * @ORM\Column(type="integer")
  29.      * @ORM\GeneratedValue(strategy="AUTO")
  30.      */
  31.     protected $id;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity="App\Entity\OrderProduct", inversedBy="equipments")
  34.      */
  35.     private $orderProduct;
  36.     /**
  37.      * @ORM\ManyToOne(targetEntity="App\Entity\ProductEquipment")
  38.      */
  39.     private $equipment;
  40.     /**
  41.      * @ORM\ManyToOne(targetEntity="App\Entity\Product")
  42.      */
  43.     private $product;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity="App\Entity\Currency")
  46.      */
  47.     private $currency;
  48.     /**
  49.      * @ORM\ManyToOne(targetEntity="App\Entity\ProductVat")
  50.      */
  51.     private $vat;
  52.     /**
  53.      * @var integer
  54.      *
  55.      * @ORM\Column(name="quantity", type="integer", length=6, nullable=true)
  56.      */
  57.     private $quantity;
  58.     /**
  59.      * @Doctrine\ORM\Mapping\Column(type="decimal", precision=10, scale=2, nullable=true)
  60.      */
  61.     protected $price;
  62.     /**
  63.      * @Doctrine\ORM\Mapping\Column(type="decimal", precision=10, name="price_net", scale=2, nullable=true)
  64.      */
  65.     protected $priceNet;
  66.     /**
  67.      * @var string
  68.      *
  69.      * @ORM\Column(name="session", type="string", length=40, nullable=true)
  70.      */
  71.     private $session;
  72.     public function getId(): ?int
  73.     {
  74.         return $this->id;
  75.     }
  76.     public function getQuantity(): ?int
  77.     {
  78.         return $this->quantity;
  79.     }
  80.     public function setQuantity(?int $quantity): self
  81.     {
  82.         $this->quantity $quantity;
  83.         return $this;
  84.     }
  85.     public function getPrice()
  86.     {
  87.         return $this->price;
  88.     }
  89.     public function setPrice($price): self
  90.     {
  91.         $this->price $price;
  92.         return $this;
  93.     }
  94.     public function getSession(): ?string
  95.     {
  96.         return $this->session;
  97.     }
  98.     public function setSession(?string $session): self
  99.     {
  100.         $this->session $session;
  101.         return $this;
  102.     }
  103.     public function getOrderProduct(): ?OrderProduct
  104.     {
  105.         return $this->orderProduct;
  106.     }
  107.     public function setOrderProduct(?OrderProduct $orderProduct): self
  108.     {
  109.         $this->orderProduct $orderProduct;
  110.         return $this;
  111.     }
  112.     public function getEquipment(): ?ProductEquipment
  113.     {
  114.         return $this->equipment;
  115.     }
  116.     public function setEquipment(?ProductEquipment $equipment): self
  117.     {
  118.         $this->equipment $equipment;
  119.         return $this;
  120.     }
  121.     public function getProduct(): ?Product
  122.     {
  123.         return $this->product;
  124.     }
  125.     public function setProduct(?Product $product): self
  126.     {
  127.         $this->product $product;
  128.         return $this;
  129.     }
  130.     public function getCurrency(): ?Currency
  131.     {
  132.         return $this->currency;
  133.     }
  134.     public function setCurrency(?Currency $currency): self
  135.     {
  136.         $this->currency $currency;
  137.         return $this;
  138.     }
  139.     public function getVat(): ?ProductVat
  140.     {
  141.         return $this->vat;
  142.     }
  143.     public function setVat(?ProductVat $vat): self
  144.     {
  145.         $this->vat $vat;
  146.         return $this;
  147.     }
  148.     /**
  149.      * @return mixed
  150.      */
  151.     public function getPriceNet()
  152.     {
  153.         return $this->priceNet;
  154.     }
  155.     /**
  156.      * @param mixed $priceNet
  157.      */
  158.     public function setPriceNet($priceNet): void
  159.     {
  160.         $this->priceNet $priceNet;
  161.     }
  162. }