src/Entity/Gos/ExportLog.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gos;
  3. use App\Enum\Product\ProductSourceSystem;
  4. use App\Repository\Gos\ExportLogRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=exportLogRepository::class)
  8.  */
  9. class ExportLog
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="datetime")
  19.      */
  20.     private $createdAt;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Orders::class, inversedBy="exportLogs")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $orders;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=User::class, inversedBy="exportLogs")
  28.      * @ORM\JoinColumn(nullable=false)
  29.      */
  30.     private $user;
  31.     /**
  32.      * @ORM\Column(type="string", length=36)
  33.      */
  34.     private $GUID;
  35.     /**
  36.      * @ORM\Column(type="string", length=255, nullable=true)
  37.      */
  38.     private $type;
  39.     /**
  40.      *
  41.      * @ORM\Column(enumType="App\Enum\Product\ProductSourceSystem", length=20)
  42.      */
  43.     private ProductSourceSystem $sourceSystem ProductSourceSystem::FO;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getCreatedAt(): ?\DateTimeInterface
  49.     {
  50.         return $this->createdAt;
  51.     }
  52.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  53.     {
  54.         $this->createdAt $createdAt;
  55.         return $this;
  56.     }
  57.     public function getOrders(): ?Orders
  58.     {
  59.         return $this->orders;
  60.     }
  61.     public function setOrders(?Orders $orders): self
  62.     {
  63.         $this->orders $orders;
  64.         return $this;
  65.     }
  66.     public function getUser(): ?User
  67.     {
  68.         return $this->user;
  69.     }
  70.     public function setUser(?User $user): self
  71.     {
  72.         $this->user $user;
  73.         return $this;
  74.     }
  75.     public function getGUID(): ?string
  76.     {
  77.         return $this->GUID;
  78.     }
  79.     public function setGUID(string $GUID): self
  80.     {
  81.         $this->GUID $GUID;
  82.         return $this;
  83.     }
  84.     public function getType(): ?string
  85.     {
  86.         return $this->type;
  87.     }
  88.     public function setType(?string $type): self
  89.     {
  90.         $this->type $type;
  91.         return $this;
  92.     }
  93.     public function getSourceSystem(): ProductSourceSystem
  94.     {
  95.         return $this->sourceSystem;
  96.     }
  97.     public function setSourceSystem(ProductSourceSystem $sourceSystem): void
  98.     {
  99.         $this->sourceSystem $sourceSystem;
  100.     }
  101. }