src/Entity/ProposNous.php line 12

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