src/Entity/ErrorLog.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ErrorLogRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: ErrorLogRepository::class)]
  6. class ErrorLog
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id = null;
  12.     #[ORM\Column(length: 50)]
  13.     private ?string $type = null;
  14.     #[ORM\Column(length: 30)]
  15.     private ?string $niveau = null;
  16.     #[ORM\Column(type: 'text')]
  17.     private ?string $message = null;
  18.     #[ORM\Column(length: 500, nullable: true)]
  19.     private ?string $url = null;
  20.     #[ORM\Column(length: 500, nullable: true)]
  21.     private ?string $route = null;
  22.     #[ORM\Column(nullable: true)]
  23.     private ?int $codeHttp = null;
  24.     #[ORM\Column(length: 500, nullable: true)]
  25.     private ?string $utilisateur = null;
  26.     #[ORM\Column]
  27.     private ?\DateTimeImmutable $createdAt = null;
  28.     public function __construct()
  29.     {
  30.         $this->createdAt = new \DateTimeImmutable();
  31.     }
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getType(): ?string
  37.     {
  38.         return $this->type;
  39.     }
  40.     public function setType(string $type): static
  41.     {
  42.         $this->type = $type;
  43.         return $this;
  44.     }
  45.     public function getNiveau(): ?string
  46.     {
  47.         return $this->niveau;
  48.     }
  49.     public function setNiveau(string $niveau): static
  50.     {
  51.         $this->niveau = $niveau;
  52.         return $this;
  53.     }
  54.     public function getMessage(): ?string
  55.     {
  56.         return $this->message;
  57.     }
  58.     public function setMessage(string $message): static
  59.     {
  60.         $this->message = $message;
  61.         return $this;
  62.     }
  63.     public function getUrl(): ?string
  64.     {
  65.         return $this->url;
  66.     }
  67.     public function setUrl(?string $url): static
  68.     {
  69.         $this->url = $url;
  70.         return $this;
  71.     }
  72.     public function getRoute(): ?string
  73.     {
  74.         return $this->route;
  75.     }
  76.     public function setRoute(?string $route): static
  77.     {
  78.         $this->route = $route;
  79.         return $this;
  80.     }
  81.     public function getCodeHttp(): ?int
  82.     {
  83.         return $this->codeHttp;
  84.     }
  85.     public function setCodeHttp(?int $codeHttp): static
  86.     {
  87.         $this->codeHttp = $codeHttp;
  88.         return $this;
  89.     }
  90.     public function getUtilisateur(): ?string
  91.     {
  92.         return $this->utilisateur;
  93.     }
  94.     public function setUtilisateur(?string $utilisateur): static
  95.     {
  96.         $this->utilisateur = $utilisateur;
  97.         return $this;
  98.     }
  99.     public function getCreatedAt(): ?\DateTimeImmutable
  100.     {
  101.         return $this->createdAt;
  102.     }
  103. }