<?phpnamespace App\Entity;use App\Repository\ErrorLogRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ErrorLogRepository::class)]class ErrorLog{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 50)] private ?string $type = null; #[ORM\Column(length: 30)] private ?string $niveau = null; #[ORM\Column(type: 'text')] private ?string $message = null; #[ORM\Column(length: 500, nullable: true)] private ?string $url = null; #[ORM\Column(length: 500, nullable: true)] private ?string $route = null; #[ORM\Column(nullable: true)] private ?int $codeHttp = null; #[ORM\Column(length: 500, nullable: true)] private ?string $utilisateur = null; #[ORM\Column] private ?\DateTimeImmutable $createdAt = null; public function __construct() { $this->createdAt = new \DateTimeImmutable(); } public function getId(): ?int { return $this->id; } public function getType(): ?string { return $this->type; } public function setType(string $type): static { $this->type = $type; return $this; } public function getNiveau(): ?string { return $this->niveau; } public function setNiveau(string $niveau): static { $this->niveau = $niveau; return $this; } public function getMessage(): ?string { return $this->message; } public function setMessage(string $message): static { $this->message = $message; return $this; } public function getUrl(): ?string { return $this->url; } public function setUrl(?string $url): static { $this->url = $url; return $this; } public function getRoute(): ?string { return $this->route; } public function setRoute(?string $route): static { $this->route = $route; return $this; } public function getCodeHttp(): ?int { return $this->codeHttp; } public function setCodeHttp(?int $codeHttp): static { $this->codeHttp = $codeHttp; return $this; } public function getUtilisateur(): ?string { return $this->utilisateur; } public function setUtilisateur(?string $utilisateur): static { $this->utilisateur = $utilisateur; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->createdAt; }}