<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="ps_orders_notifications")
*
* @ORM\Entity(repositoryClass="App\Repository\System\OrderNotificationRepository")
*/
class OrderNotification
{
/**
* @var int
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(type="integer", name="id_orders_notifications")
*/
private $id;
/**
* @var Order
*
* @ORM\OneToOne(targetEntity="App\Entity\System\Order", inversedBy="notification")
*
* @ORM\JoinColumn(name="id_orders", referencedColumnName="id_order")
*/
private $order;
/**
* @var \DateTime|null
*
* @ORM\Column(type="datetime")
*/
private ?\DateTime $estimatedShippingDate;
/**
* @var \DateTime|null
*
* @ORM\Column(type="datetime")
*/
private ?\DateTime $cancel;
/**
* @var \DateTime|null
*
* @ORM\Column(type="datetime")
*/
private ?\DateTime $dateDelivered;
public function getId(): int
{
return $this->id;
}
public function getOrder(): Order
{
return $this->order;
}
public function setOrder(Order $order): OrderNotification
{
$this->order = $order;
return $this;
}
public function getEstimatedShippingDate(): ?\DateTime
{
return $this->estimatedShippingDate;
}
public function setEstimatedShippingDate(\DateTime $estimatedShippingDate): OrderNotification
{
$this->estimatedShippingDate = $estimatedShippingDate;
return $this;
}
public function getCancel(): ?\DateTime
{
return $this->cancel;
}
public function setCancel(?\DateTime $cancel): OrderNotification
{
$this->cancel = $cancel;
return $this;
}
public function getDateDelivered(): ?\DateTime
{
return $this->dateDelivered;
}
public function setDateDelivered(?\DateTime $dateDelivered): OrderNotification
{
$this->dateDelivered = $dateDelivered;
return $this;
}
}