src/Entity/System/OrderNotification.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Table(name="ps_orders_notifications")
  6.  *
  7.  * @ORM\Entity(repositoryClass="App\Repository\System\OrderNotificationRepository")
  8.  */
  9. class OrderNotification
  10. {
  11.     /**
  12.      * @var int
  13.      *
  14.      * @ORM\Id
  15.      *
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      *
  18.      * @ORM\Column(type="integer", name="id_orders_notifications")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var Order
  23.      *
  24.      * @ORM\OneToOne(targetEntity="App\Entity\System\Order", inversedBy="notification")
  25.      *
  26.      * @ORM\JoinColumn(name="id_orders", referencedColumnName="id_order", nullable=false)
  27.      */
  28.     private $order;
  29.     /**
  30.      * @var \DateTime|null
  31.      *
  32.      * @ORM\Column(type="datetime", nullable=true)
  33.      */
  34.     private ?\DateTime $estimatedShippingDate;
  35.     /**
  36.      * @var \DateTime|null
  37.      *
  38.      * @ORM\Column(type="datetime", nullable=true)
  39.      */
  40.     private ?\DateTime $cancel;
  41.     /**
  42.      * @deprecated
  43.      *
  44.      * @var \DateTime|null
  45.      *
  46.      * @ORM\Column(type="datetime", nullable=true)
  47.      */
  48.     private ?\DateTime $confirmation;
  49.     /**
  50.      * @deprecated
  51.      *
  52.      * @var \DateTime|null
  53.      *
  54.      * @ORM\Column(type="datetime", nullable=true)
  55.      */
  56.     private ?\DateTime $partial;
  57.     /**
  58.      * @deprecated
  59.      *
  60.      * @var \DateTime|null
  61.      *
  62.      * @ORM\Column(type="datetime", nullable=true)
  63.      */
  64.     private ?\DateTime $returned;
  65.     /**
  66.      * @deprecated
  67.      *
  68.      * @var \DateTime|null
  69.      *
  70.      * @ORM\Column(type="datetime", nullable=true)
  71.      */
  72.     private ?\DateTime $dateExpedition;
  73.     /**
  74.      * @var \DateTime|null
  75.      *
  76.      * @ORM\Column(type="datetime", nullable=true)
  77.      */
  78.     private ?\DateTime $dateDelivered;
  79.     public function getId(): int
  80.     {
  81.         return $this->id;
  82.     }
  83.     public function getOrder(): Order
  84.     {
  85.         return $this->order;
  86.     }
  87.     public function setOrder(Order $order): OrderNotification
  88.     {
  89.         $this->order $order;
  90.         return $this;
  91.     }
  92.     public function getEstimatedShippingDate(): ?\DateTime
  93.     {
  94.         return $this->estimatedShippingDate;
  95.     }
  96.     public function setEstimatedShippingDate(\DateTime $estimatedShippingDate): OrderNotification
  97.     {
  98.         $this->estimatedShippingDate $estimatedShippingDate;
  99.         return $this;
  100.     }
  101.     public function getCancel(): ?\DateTime
  102.     {
  103.         return $this->cancel;
  104.     }
  105.     public function setCancel(?\DateTime $cancel): OrderNotification
  106.     {
  107.         $this->cancel $cancel;
  108.         return $this;
  109.     }
  110.     public function getDateDelivered(): ?\DateTime
  111.     {
  112.         return $this->dateDelivered;
  113.     }
  114.     public function setDateDelivered(?\DateTime $dateDelivered): OrderNotification
  115.     {
  116.         $this->dateDelivered $dateDelivered;
  117.         return $this;
  118.     }
  119.     public function getConfirmation(): ?\DateTime
  120.     {
  121.         return $this->confirmation;
  122.     }
  123.     public function setConfirmation(?\DateTime $confirmation): OrderNotification
  124.     {
  125.         $this->confirmation $confirmation;
  126.         return $this;
  127.     }
  128.     public function getPartial(): ?\DateTime
  129.     {
  130.         return $this->partial;
  131.     }
  132.     public function setPartial(?\DateTime $partial): OrderNotification
  133.     {
  134.         $this->partial $partial;
  135.         return $this;
  136.     }
  137.     public function getReturned(): ?\DateTime
  138.     {
  139.         return $this->returned;
  140.     }
  141.     public function setReturned(?\DateTime $returned): OrderNotification
  142.     {
  143.         $this->returned $returned;
  144.         return $this;
  145.     }
  146.     public function getDateExpedition(): ?\DateTime
  147.     {
  148.         return $this->dateExpedition;
  149.     }
  150.     public function setDateExpedition(?\DateTime $dateExpedition): OrderNotification
  151.     {
  152.         $this->dateExpedition $dateExpedition;
  153.         return $this;
  154.     }
  155. }