src/Entity/System/Tracking.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_order_tracking_temp")
  6.  *
  7.  * @ORM\Entity(repositoryClass="App\Repository\System\TrackingRepository")
  8.  */
  9. class Tracking
  10. {
  11.     public const NOT_AVAILABLE_TEXT 'N/A';
  12.     public const STATUS_WAITING_TO_COMPUTE 'WAITING_TO_COMPUTE';
  13.     public const NO_MOVEMENT_TOLERANCY_IN_SECONDS 7300;
  14.     public const NO_MOVEMENT_BETWEEN_EVENT_IN_SECONDS_FACTOR 345600;
  15.     public const A4B_LOGISTICS_CANONICAL_STATUS_NAME_RETURNED 'RETURNED';
  16.     public const A4B_LOGISTICS_CANONICAL_STATUS_NAME_PICKUP_POINT 'PICKUP_POINT';
  17.     public const A4B_LOGISTICS_CANONICAL_STATUS_NAME_DAMAGE 'DAMAGE';
  18.     public const A4B_LOGISTICS_CANONICAL_STATUS_NAME_LOST 'LOST';
  19.     /**
  20.      * @var int
  21.      *
  22.      * @ORM\Id
  23.      *
  24.      * @ORM\GeneratedValue(strategy="AUTO")
  25.      *
  26.      * @ORM\Column(type="integer", name="id_order_tracking")
  27.      */
  28.     private $id;
  29.     /**
  30.      * @var \DateTime|null
  31.      *
  32.      * @ORM\Column(type="datetime", nullable=true, name="date_status")
  33.      */
  34.     private $statusDate;
  35.     /**
  36.      * @var int
  37.      *
  38.      * @ORM\Column(type="integer", name="id_order")
  39.      */
  40.     private $orderId;
  41.     /**
  42.      * @var int
  43.      *
  44.      * @ORM\Column(type="integer", name="id_carrier_master")
  45.      */
  46.     private $carrierMasterId;
  47.     /**
  48.      * @ORM\ManyToOne(targetEntity="App\Entity\System\TrackingStatus")
  49.      *
  50.      * @ORM\Column(type="integer", nullable=true, name="id_tracking_status")
  51.      */
  52.     private ?int $trackingStatusId;
  53.     /**
  54.      * @var bool|null
  55.      *
  56.      * @ORM\Column(type="boolean", nullable=true)
  57.      */
  58.     private $downloaded;
  59.     /**
  60.      * @var string
  61.      *
  62.      * @ORM\Column(type="string", length=256)
  63.      */
  64.     private $trackingNumber;
  65.     /**
  66.      * @var string
  67.      *
  68.      * @ORM\Column(type="string", length=2048)
  69.      */
  70.     private $trackingStatus;
  71.     /**
  72.      * @var bool
  73.      *
  74.      * @ORM\Column(type="boolean")
  75.      */
  76.     private $viewed;
  77.     /**
  78.      * @return mixed
  79.      */
  80.     public function getId()
  81.     {
  82.         return $this->id;
  83.     }
  84.     /**
  85.      * @param int $id
  86.      *
  87.      * @return Tracking
  88.      */
  89.     public function setId(int $id): Tracking
  90.     {
  91.         $this->id $id;
  92.         return $this;
  93.     }
  94.     /**
  95.      * @return bool
  96.      */
  97.     public function isViewed(): bool
  98.     {
  99.         return $this->viewed;
  100.     }
  101.     /**
  102.      * @param bool $viewed
  103.      *
  104.      * @return Tracking
  105.      */
  106.     public function setViewed(bool $viewed): Tracking
  107.     {
  108.         $this->viewed $viewed;
  109.         return $this;
  110.     }
  111.     public function getStatusDate(): ?\DateTime
  112.     {
  113.         return $this->statusDate;
  114.     }
  115.     public function setStatusDate(?\DateTime $statusDate): Tracking
  116.     {
  117.         $this->statusDate $statusDate;
  118.         return $this;
  119.     }
  120.     public function getOrderId(): int
  121.     {
  122.         return $this->orderId;
  123.     }
  124.     public function setOrderId(int $orderId): Tracking
  125.     {
  126.         $this->orderId $orderId;
  127.         return $this;
  128.     }
  129.     public function getCarrierMasterId(): int
  130.     {
  131.         return $this->carrierMasterId;
  132.     }
  133.     public function setCarrierMasterId(int $carrierMasterId): Tracking
  134.     {
  135.         $this->carrierMasterId $carrierMasterId;
  136.         return $this;
  137.     }
  138.     public function getTrackingStatusId(): ?int
  139.     {
  140.         return $this->trackingStatusId;
  141.     }
  142.     public function setTrackingStatusId(int $trackingStatusId): Tracking
  143.     {
  144.         $this->trackingStatusId $trackingStatusId;
  145.         return $this;
  146.     }
  147.     public function getDownloaded(): ?bool
  148.     {
  149.         return $this->downloaded;
  150.     }
  151.     public function setDownloaded(?bool $downloaded): Tracking
  152.     {
  153.         $this->downloaded $downloaded;
  154.         return $this;
  155.     }
  156.     public function getTrackingNumber(): string
  157.     {
  158.         return $this->trackingNumber;
  159.     }
  160.     public function setTrackingNumber(string $trackingNumber): Tracking
  161.     {
  162.         $this->trackingNumber $trackingNumber;
  163.         return $this;
  164.     }
  165.     public function getTrackingStatus(): string
  166.     {
  167.         return $this->trackingStatus;
  168.     }
  169.     public function setTrackingStatus(string $trackingStatus): Tracking
  170.     {
  171.         $this->trackingStatus $trackingStatus;
  172.         return $this;
  173.     }
  174. }