src/Entity/Client.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ClientRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Timestampable\Traits\TimestampableEntity;
  6. #[ORM\Entity(repositoryClassClientRepository::class)]
  7. class Client
  8. {
  9.     use TimestampableEntity;
  10.     
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $image null;
  17.     #[ORM\Column]
  18.     private ?bool $statut null;
  19.     
  20.     #[Gedmo\Timestampable(on :'create')]
  21.     private ?\DateTimeImmutable $created_at null;
  22.     #[Gedmo\Timestampable(on :'update')]
  23.     private ?\DateTimeImmutable $updated_at null;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getImage(): ?string
  29.     {
  30.         return $this->image;
  31.     }
  32.     public function setImage(string $image): self
  33.     {
  34.         $this->image $image;
  35.         return $this;
  36.     }
  37.     public function isStatut(): ?bool
  38.     {
  39.         return $this->statut;
  40.     }
  41.     public function setStatut(bool $statut): self
  42.     {
  43.         $this->statut $statut;
  44.         return $this;
  45.     }
  46.     public function getCreatedAt(): ?\DateTimeImmutable
  47.     {
  48.         return $this->created_at;
  49.     }
  50.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  51.     {
  52.         $this->created_at $created_at;
  53.         return $this;
  54.     }
  55.     public function getUpdatedAt(): ?\DateTimeImmutable
  56.     {
  57.         return $this->updated_at;
  58.     }
  59.     public function setUpdatedAt(\DateTimeImmutable $updated_at): self
  60.     {
  61.         $this->updated_at $updated_at;
  62.         return $this;
  63.     }
  64. }