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")
  27.      */
  28.     private $order;
  29.     /**
  30.      * @var \DateTime|null
  31.      *
  32.      * @ORM\Column(type="datetime")
  33.      */
  34.     private ?\DateTime $estimatedShippingDate;
  35.     /**
  36.      * @var \DateTime|null
  37.      *
  38.      * @ORM\Column(type="datetime")
  39.      */
  40.     private ?\DateTime $cancel;
  41.     /**
  42.      * @var \DateTime|null
  43.      *
  44.      * @ORM\Column(type="datetime")
  45.      */
  46.     private ?\DateTime $dateDelivered;
  47.     public function getId(): int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getOrder(): Order
  52.     {
  53.         return $this->order;
  54.     }
  55.     public function setOrder(Order $order): OrderNotification
  56.     {
  57.         $this->order $order;
  58.         return $this;
  59.     }
  60.     public function getEstimatedShippingDate(): ?\DateTime
  61.     {
  62.         return $this->estimatedShippingDate;
  63.     }
  64.     public function setEstimatedShippingDate(\DateTime $estimatedShippingDate): OrderNotification
  65.     {
  66.         $this->estimatedShippingDate $estimatedShippingDate;
  67.         return $this;
  68.     }
  69.     public function getCancel(): ?\DateTime
  70.     {
  71.         return $this->cancel;
  72.     }
  73.     public function setCancel(?\DateTime $cancel): OrderNotification
  74.     {
  75.         $this->cancel $cancel;
  76.         return $this;
  77.     }
  78.     public function getDateDelivered(): ?\DateTime
  79.     {
  80.         return $this->dateDelivered;
  81.     }
  82.     public function setDateDelivered(?\DateTime $dateDelivered): OrderNotification
  83.     {
  84.         $this->dateDelivered $dateDelivered;
  85.         return $this;
  86.     }
  87. }