src/Entity/OrderItems.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OrderItemsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassOrderItemsRepository::class)]
  6. class OrderItems
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityOrders::class, inversedBy'orderItems')]
  13.     private $orders;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $name;
  16.     #[ORM\ManyToOne(targetEntityProducts::class, inversedBy'orderItems')]
  17.     private $product;
  18.     #[ORM\ManyToOne(targetEntityDistributors::class, inversedBy'orderItems')]
  19.     private $distributor;
  20.     #[ORM\Column(type'integer')]
  21.     private $quantity;
  22.     #[ORM\Column(type'float')]
  23.     private $unitPrice;
  24.     #[ORM\Column(type'float')]
  25.     private $total;
  26.     #[ORM\Column(type'datetime')]
  27.     private $modified;
  28.     #[ORM\Column(type'datetime')]
  29.     private $created;
  30.     #[ORM\Column(type'string'length255)]
  31.     private $poNumber;
  32.     #[ORM\Column(type'text'nullabletrue)]
  33.     private $comments;
  34.     #[ORM\Column(type'date'nullabletrue)]
  35.     private $expiryDate;
  36.     #[ORM\Column(type'integer')]
  37.     private $isAccepted;
  38.     #[ORM\Column(type'integer')]
  39.     private $isRenegotiate;
  40.     #[ORM\Column(type'integer')]
  41.     private $isCancelled;
  42.     #[ORM\Column(type'integer'nullabletrue)]
  43.     private $isConfirmedDistributor;
  44.     #[ORM\Column(type'string'length255)]
  45.     private $status;
  46.     #[ORM\Column(type'integer'nullabletrue)]
  47.     private $quantityDelivered;
  48.     #[ORM\Column(type'integer')]
  49.     private $isQuantityCorrect;
  50.     #[ORM\Column(type'integer')]
  51.     private $isQuantityIncorrect;
  52.     #[ORM\Column(type'integer')]
  53.     private $isAcceptedOnDelivery;
  54.     #[ORM\Column(type'integer')]
  55.     private $isRejectedOnDelivery;
  56.     #[ORM\Column(type'integer')]
  57.     private $isQuantityAdjust;
  58.     #[ORM\Column(type'text'nullabletrue)]
  59.     private $rejectReason;
  60.     #[ORM\Column(type'string'length255nullabletrue)]
  61.     private $orderReceivedBy;
  62.     #[ORM\Column(type'string'length255nullabletrue)]
  63.     private $orderPlacedBy;
  64.     #[ORM\Column(type'string'length255)]
  65.     private $itemId;
  66.     #[ORM\Column(type'float'nullabletrue)]
  67.     private $distributor_total;
  68.     public function __construct()
  69.     {
  70.         $this->setCreated(new \DateTime());
  71.         if ($this->getModified() == null) {
  72.             $this->setModified(new \DateTime());
  73.         }
  74.     }
  75.     public function getId(): ?int
  76.     {
  77.         return $this->id;
  78.     }
  79.     public function getOrders(): ?Orders
  80.     {
  81.         return $this->orders;
  82.     }
  83.     public function setOrders(?Orders $orders): self
  84.     {
  85.         $this->orders $orders;
  86.         return $this;
  87.     }
  88.     public function getName(): ?string
  89.     {
  90.         return $this->name;
  91.     }
  92.     public function setName(string $name): self
  93.     {
  94.         $this->name $name;
  95.         return $this;
  96.     }
  97.     public function getProduct(): ?Products
  98.     {
  99.         return $this->product;
  100.     }
  101.     public function setProduct(?Products $product): self
  102.     {
  103.         $this->product $product;
  104.         return $this;
  105.     }
  106.     public function getDistributor(): ?Distributors
  107.     {
  108.         return $this->distributor;
  109.     }
  110.     public function setDistributor(?Distributors $distributor): self
  111.     {
  112.         $this->distributor $distributor;
  113.         return $this;
  114.     }
  115.     public function getQuantity(): ?int
  116.     {
  117.         return $this->quantity;
  118.     }
  119.     public function setQuantity(int $quantity): self
  120.     {
  121.         $this->quantity $quantity;
  122.         return $this;
  123.     }
  124.     public function getUnitPrice(): ?float
  125.     {
  126.         return $this->unitPrice;
  127.     }
  128.     public function setUnitPrice(float $unitPrice): self
  129.     {
  130.         $this->unitPrice $unitPrice;
  131.         return $this;
  132.     }
  133.     public function getTotal(): ?float
  134.     {
  135.         return $this->total;
  136.     }
  137.     public function setTotal(float $total): self
  138.     {
  139.         $this->total $total;
  140.         return $this;
  141.     }
  142.     public function getModified(): ?\DateTimeInterface
  143.     {
  144.         return $this->modified;
  145.     }
  146.     public function setModified(\DateTimeInterface $modified): self
  147.     {
  148.         $this->modified $modified;
  149.         return $this;
  150.     }
  151.     public function getCreated(): ?\DateTimeInterface
  152.     {
  153.         return $this->created;
  154.     }
  155.     public function setCreated(\DateTimeInterface $created): self
  156.     {
  157.         $this->created $created;
  158.         return $this;
  159.     }
  160.     public function getPoNumber(): ?string
  161.     {
  162.         return $this->poNumber;
  163.     }
  164.     public function setPoNumber(string $poNumber): self
  165.     {
  166.         $this->poNumber $poNumber;
  167.         return $this;
  168.     }
  169.     public function getComments(): ?string
  170.     {
  171.         return $this->comments;
  172.     }
  173.     public function setComments(?string $comments): self
  174.     {
  175.         $this->comments $comments;
  176.         return $this;
  177.     }
  178.     public function getExpiryDate(): ?\DateTimeInterface
  179.     {
  180.         return $this->expiryDate;
  181.     }
  182.     public function setExpiryDate(?\DateTimeInterface $expiryDate): self
  183.     {
  184.         $this->expiryDate $expiryDate;
  185.         return $this;
  186.     }
  187.     public function getIsAccepted(): ?int
  188.     {
  189.         return $this->isAccepted;
  190.     }
  191.     public function setIsAccepted(int $isAccepted): self
  192.     {
  193.         $this->isAccepted $isAccepted;
  194.         return $this;
  195.     }
  196.     public function getIsRenegotiate(): ?int
  197.     {
  198.         return $this->isRenegotiate;
  199.     }
  200.     public function setIsRenegotiate(int $isRenegotiate): self
  201.     {
  202.         $this->isRenegotiate $isRenegotiate;
  203.         return $this;
  204.     }
  205.     public function getIsCancelled(): ?int
  206.     {
  207.         return $this->isCancelled;
  208.     }
  209.     public function setIsCancelled(int $isCancelled): self
  210.     {
  211.         $this->isCancelled $isCancelled;
  212.         return $this;
  213.     }
  214.     public function getIsConfirmedDistributor(): ?int
  215.     {
  216.         return $this->isConfirmedDistributor;
  217.     }
  218.     public function setIsConfirmedDistributor(?int $isConfirmedDistributor): self
  219.     {
  220.         $this->isConfirmedDistributor $isConfirmedDistributor;
  221.         return $this;
  222.     }
  223.     public function getStatus(): ?string
  224.     {
  225.         return $this->status;
  226.     }
  227.     public function setStatus(string $status): self
  228.     {
  229.         $this->status $status;
  230.         return $this;
  231.     }
  232.     public function getQuantityDelivered(): ?int
  233.     {
  234.         return $this->quantityDelivered;
  235.     }
  236.     public function setQuantityDelivered(?int $quantityDelivered): self
  237.     {
  238.         $this->quantityDelivered $quantityDelivered;
  239.         return $this;
  240.     }
  241.     public function getIsQuantityCorrect(): ?int
  242.     {
  243.         return $this->isQuantityCorrect;
  244.     }
  245.     public function setIsQuantityCorrect(int $isQuantityCorrect): self
  246.     {
  247.         $this->isQuantityCorrect $isQuantityCorrect;
  248.         return $this;
  249.     }
  250.     public function getIsQuantityIncorrect(): ?int
  251.     {
  252.         return $this->isQuantityIncorrect;
  253.     }
  254.     public function setIsQuantityIncorrect(int $isQuantityIncorrect): self
  255.     {
  256.         $this->isQuantityIncorrect $isQuantityIncorrect;
  257.         return $this;
  258.     }
  259.     public function getIsAcceptedOnDelivery(): ?int
  260.     {
  261.         return $this->isAcceptedOnDelivery;
  262.     }
  263.     public function setIsAcceptedOnDelivery(int $isAcceptedOnDelivery): self
  264.     {
  265.         $this->isAcceptedOnDelivery $isAcceptedOnDelivery;
  266.         return $this;
  267.     }
  268.     public function getIsRejectedOnDelivery(): ?int
  269.     {
  270.         return $this->isRejectedOnDelivery;
  271.     }
  272.     public function setIsRejectedOnDelivery(int $isRejectedOnDelivery): self
  273.     {
  274.         $this->isRejectedOnDelivery $isRejectedOnDelivery;
  275.         return $this;
  276.     }
  277.     public function getIsQuantityAdjust(): ?int
  278.     {
  279.         return $this->isQuantityAdjust;
  280.     }
  281.     public function setIsQuantityAdjust(int $isQuantityAdjust): self
  282.     {
  283.         $this->isQuantityAdjust $isQuantityAdjust;
  284.         return $this;
  285.     }
  286.     public function getRejectReason(): ?string
  287.     {
  288.         return $this->rejectReason;
  289.     }
  290.     public function setRejectReason(?string $rejectReason): self
  291.     {
  292.         $this->rejectReason $rejectReason;
  293.         return $this;
  294.     }
  295.     public function getOrderReceivedBy(): ?string
  296.     {
  297.         return $this->orderReceivedBy;
  298.     }
  299.     public function setOrderReceivedBy(?string $orderReceivedBy): self
  300.     {
  301.         $this->orderReceivedBy $orderReceivedBy;
  302.         return $this;
  303.     }
  304.     public function getOrderPlacedBy(): ?string
  305.     {
  306.         return $this->orderPlacedBy;
  307.     }
  308.     public function setOrderPlacedBy(?string $orderPlacedBy): self
  309.     {
  310.         $this->orderPlacedBy $orderPlacedBy;
  311.         return $this;
  312.     }
  313.     public function getItemId(): ?string
  314.     {
  315.         return $this->itemId;
  316.     }
  317.     public function setItemId(string $itemId): self
  318.     {
  319.         $this->itemId $itemId;
  320.         return $this;
  321.     }
  322.     public function getDistributorTotal(): ?float
  323.     {
  324.         return $this->distributor_total;
  325.     }
  326.     public function setDistributorTotal(?float $distributor_total): self
  327.     {
  328.         $this->distributor_total $distributor_total;
  329.         return $this;
  330.     }
  331. }