src/Entity/NosService.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\NosServiceRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Anotation as Gedmo;
  7. use Gedmo\Timestampable\Traits\TimestampableEntity;
  8. #[ORM\Entity(repositoryClassNosServiceRepository::class)]
  9. class NosService
  10. {
  11.     use TimestampableEntity;
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255nullabletrue)]
  17.     private ?string $image null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $titre null;
  20.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  21.     private ?string $description null;
  22.     #[Gedmo\Timestampable(on :'create')]
  23.     private ?\DateTimeImmutable $created_at null;
  24.    
  25.     #[Gedmo\Timestampable(on :'update')]
  26.     private ?\DateTimeImmutable $updated_at null;
  27.     #[ORM\Column]
  28.     private ?bool $statut null;
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getImage(): ?string
  34.     {
  35.         return $this->image;
  36.     }
  37.     public function setImage(?string $image): self
  38.     {
  39.         $this->image $image;
  40.         return $this;
  41.     }
  42.     public function getTitre(): ?string
  43.     {
  44.         return $this->titre;
  45.     }
  46.     public function setTitre(string $titre): self
  47.     {
  48.         $this->titre $titre;
  49.         return $this;
  50.     }
  51.     public function getDescription(): ?string
  52.     {
  53.         return $this->description;
  54.     }
  55.     public function setDescription(?string $description): self
  56.     {
  57.         $this->description $description;
  58.         return $this;
  59.     }
  60.     public function getCreatedAt(): ?\DateTimeImmutable
  61.     {
  62.         return $this->created_at;
  63.     }
  64.     public function getUpdatedAt(): ?\DateTimeImmutable
  65.     {
  66.         return $this->updated_at;
  67.     }
  68.     public function isStatut(): ?bool
  69.     {
  70.         return $this->statut;
  71.     }
  72.     public function setStatut(bool $statut): self
  73.     {
  74.         $this->statut $statut;
  75.         return $this;
  76.     }
  77. }