<?phpnamespace App\Entity\Gos;use App\Enum\Product\ProductSourceSystem;use App\Repository\Gos\ExportLogRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=exportLogRepository::class) */class ExportLog{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=Orders::class, inversedBy="exportLogs") * @ORM\JoinColumn(nullable=false) */ private $orders; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="exportLogs") * @ORM\JoinColumn(nullable=false) */ private $user; /** * @ORM\Column(type="string", length=36) */ private $GUID; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $type; /** * * @ORM\Column(enumType="App\Enum\Product\ProductSourceSystem", length=20) */ private ProductSourceSystem $sourceSystem = ProductSourceSystem::FO; public function getId(): ?int { return $this->id; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getOrders(): ?Orders { return $this->orders; } public function setOrders(?Orders $orders): self { $this->orders = $orders; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getGUID(): ?string { return $this->GUID; } public function setGUID(string $GUID): self { $this->GUID = $GUID; return $this; } public function getType(): ?string { return $this->type; } public function setType(?string $type): self { $this->type = $type; return $this; } public function getSourceSystem(): ProductSourceSystem { return $this->sourceSystem; } public function setSourceSystem(ProductSourceSystem $sourceSystem): void { $this->sourceSystem = $sourceSystem; }}