src/Entity/Log.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LogRepository;
  4. use App\Traits\TimeStampTrait;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassLogRepository::class)]
  7. #[ORM\HasLifecycleCallbacks]
  8. class Log
  9. {
  10.     use TimeStampTrait;
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $description null;
  17.     #[ORM\Column]
  18.     private ?int $level null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $others null;
  21.     #[ORM\Column(length50)]
  22.     private ?string $title null;
  23.     #[ORM\ManyToOne(inversedBy'logs')]
  24.     private ?User $createdBy null;
  25.     #[ORM\ManyToOne(inversedBy'logs')]
  26.     private ?Entreprise $marchand null;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getDescription(): ?string
  32.     {
  33.         return $this->description;
  34.     }
  35.     public function setDescription(string $description): static
  36.     {
  37.         $this->description $description;
  38.         return $this;
  39.     }
  40.     public function getLevel(): ?int
  41.     {
  42.         return $this->level;
  43.     }
  44.     public function setLevel(int $level): static
  45.     {
  46.         $this->level $level;
  47.         return $this;
  48.     }
  49.     public function getOthers(): ?string
  50.     {
  51.         return $this->others;
  52.     }
  53.     public function setOthers(string $others): static
  54.     {
  55.         $this->others $others;
  56.         return $this;
  57.     }
  58.     public function getTitle(): ?string
  59.     {
  60.         return $this->title;
  61.     }
  62.     public function setTitle(string $title): static
  63.     {
  64.         $this->title $title;
  65.         return $this;
  66.     }
  67.     public function getCreatedBy(): ?User
  68.     {
  69.         return $this->createdBy;
  70.     }
  71.     public function setCreatedBy(?User $createdBy): static
  72.     {
  73.         $this->createdBy $createdBy;
  74.         return $this;
  75.     }
  76.     public function getMarchand(): ?Entreprise
  77.     {
  78.         return $this->marchand;
  79.     }
  80.     public function setMarchand(?Entreprise $marchand): static
  81.     {
  82.         $this->marchand $marchand;
  83.         return $this;
  84.     }
  85. }