src/Entity/Log.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\LogRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassLogRepository::class)]
  7. class Log
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $activityName null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $activityDescription null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $userName null;
  19.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  20.     private ?\DateTimeInterface $dateAjout null;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getActivityName(): ?string
  26.     {
  27.         return $this->activityName;
  28.     }
  29.     public function setActivityName(?string $activityName): static
  30.     {
  31.         $this->activityName $activityName;
  32.         return $this;
  33.     }
  34.     public function getActivityDescription(): ?string
  35.     {
  36.         return $this->activityDescription;
  37.     }
  38.     public function setActivityDescription(?string $activityDescription): static
  39.     {
  40.         $this->activityDescription $activityDescription;
  41.         return $this;
  42.     }
  43.     public function getUserName(): ?string
  44.     {
  45.         return $this->userName;
  46.     }
  47.     public function setUserName(?string $userName): static
  48.     {
  49.         $this->userName $userName;
  50.         return $this;
  51.     }
  52.     public function getDateAjout(): ?\DateTimeInterface
  53.     {
  54.         return $this->dateAjout;
  55.     }
  56.     public function setDateAjout(?\DateTimeInterface $dateAjout): self
  57.     {
  58.         $this->dateAjout $dateAjout;
  59.         return $this;
  60.     }
  61. }