src/Entity/OrderArticle.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OrderArticleRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=OrderArticleRepository::class)
  8.  */
  9. class OrderArticle
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=Orders::class, inversedBy="orderArticles")
  19.      */
  20.     private $orderCart;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Articles::class, inversedBy="orderArticles")
  23.      */
  24.     private $article;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=Users::class, inversedBy="createdOrderArticle")
  27.      */
  28.     private $createdBy;
  29.     /**
  30.      * @ORM\Column(type="float")
  31.      */
  32.     private $quantity 0.0;
  33.     /**
  34.      * @ORM\Column(type="datetime")
  35.      */
  36.     private $createdAt;
  37.     /**
  38.      * @ORM\Column(type="float", length=255)
  39.      */
  40.     private $priceUnit;
  41.     /**
  42.      * @ORM\Column(type="float")
  43.      */
  44.     private $tax 0.0;
  45.     /**
  46.      * @ORM\Column(type="float", nullable=true)
  47.      */
  48.     private $priceUnitTvac;
  49.     /**
  50.      * @ORM\Column(type="float", nullable=true)
  51.      */
  52.     private $weightCounting;
  53.     /**
  54.      * @ORM\Column(type="boolean")
  55.      */
  56.     private $deletionRequested false;
  57.     /**
  58.      * @ORM\Column(type="boolean")
  59.      */
  60.     private $deleted false;
  61.     /**
  62.      * @ORM\Column(type="datetime", nullable=true)
  63.      */
  64.     private $deletedAt null;
  65.     /**
  66.      * @ORM\ManyToOne(targetEntity=Users::class)
  67.      */
  68.     private $deletedBy null;
  69.     public function __construct()
  70.     {
  71.         $this->createdAt = New \DateTime();
  72.     }
  73.     public function getId(): ?int
  74.     {
  75.         return $this->id;
  76.     }
  77.     public function getOrderCart(): ?Orders
  78.     {
  79.         return $this->orderCart;
  80.     }
  81.     public function setOrderCart(?Orders $orderCart): self
  82.     {
  83.         $this->orderCart $orderCart;
  84.         return $this;
  85.     }
  86.     public function getArticle(): ?Articles
  87.     {
  88.         return $this->article;
  89.     }
  90.     public function setArticle(?Articles $article): self
  91.     {
  92.         $this->article $article;
  93.         return $this;
  94.     }
  95.     public function getCreatedBy(): ?Users
  96.     {
  97.         return $this->createdBy;
  98.     }
  99.     public function setCreatedBy(?Users $createdBy): self
  100.     {
  101.         $this->createdBy $createdBy;
  102.         return $this;
  103.     }
  104.     public function getQuantity(): ?float
  105.     {
  106.         return $this->quantity;
  107.     }
  108.     public function setQuantity(float $quantity): self
  109.     {
  110.         $this->quantity $quantity;
  111.         return $this;
  112.     }
  113.     public function getCreatedAt(): ?\DateTimeInterface
  114.     {
  115.         return $this->createdAt;
  116.     }
  117.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  118.     {
  119.         $this->createdAt $createdAt;
  120.         return $this;
  121.     }
  122.     public function getPriceUnit(): ?float
  123.     {
  124.         return $this->priceUnit;
  125.     }
  126.     public function setPriceUnit(float $priceUnit): self
  127.     {
  128.         $this->priceUnit $priceUnit;
  129.         return $this;
  130.     }
  131.     public function getTax(): ?float
  132.     {
  133.         return $this->tax;
  134.     }
  135.     public function setTax(float $tax): self
  136.     {
  137.         $this->tax $tax;
  138.         return $this;
  139.     }
  140.     public function getPriceUnitTvac(): ?float
  141.     {
  142.         return $this->priceUnitTvac;
  143.     }
  144.     public function setPriceUnitTvac(?float $priceUnitTvac): self
  145.     {
  146.         $this->priceUnitTvac $priceUnitTvac;
  147.         return $this;
  148.     }
  149.     public function getWeightCounting(): ?float
  150.     {
  151.         return $this->weightCounting;
  152.     }
  153.     public function setWeightCounting(?float $weightCounting): self
  154.     {
  155.         $this->weightCounting $weightCounting;
  156.         return $this;
  157.     }
  158.     public function isDeletionRequested(): ?bool
  159.     {
  160.         return $this->deletionRequested;
  161.     }
  162.     public function setDeletionRequested(bool $deletionRequested): self
  163.     {
  164.         $this->deletionRequested $deletionRequested;
  165.         return $this;
  166.     }
  167.     public function isDeleted(): ?bool
  168.     {
  169.         return $this->deleted;
  170.     }
  171.     public function setDeleted(bool $deleted): self
  172.     {
  173.         $this->deleted $deleted;
  174.         return $this;
  175.     }
  176.     public function getDeletedAt(): ?\DateTimeInterface
  177.     {
  178.         return $this->deletedAt;
  179.     }
  180.     public function setDeletedAt(\DateTimeInterface $deletedAt): self
  181.     {
  182.         $this->deletedAt $deletedAt;
  183.         return $this;
  184.     }
  185.     public function getDeletedBy(): ?Users
  186.     {
  187.         return $this->deletedBy;
  188.     }
  189.     public function setDeletedBy(?Users $deletedBy): self
  190.     {
  191.         $this->deletedBy $deletedBy;
  192.         return $this;
  193.     }
  194. }