src/Entity/Temoignage.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use ApiPlatform\Core\Annotation\ApiResource;
  4. use App\Repository\TemoignageRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassTemoignageRepository::class)]
  8. #[ApiResource]
  9. class Temoignage
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $etoile null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $commentaire null;
  19.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  20.     private ?string $description null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $image null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $profession null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $nom null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $prenom null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $poste null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $pays null;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getEtoile(): ?string
  38.     {
  39.         return $this->etoile;
  40.     }
  41.     public function setEtoile(?string $etoile): self
  42.     {
  43.         $this->etoile $etoile;
  44.         return $this;
  45.     }
  46.     public function getCommentaire(): ?string
  47.     {
  48.         return $this->commentaire;
  49.     }
  50.     public function setCommentaire(?string $commentaire): self
  51.     {
  52.         $this->commentaire $commentaire;
  53.         return $this;
  54.     }
  55.     public function getDescription(): ?string
  56.     {
  57.         return $this->description;
  58.     }
  59.     public function setDescription(?string $description): self
  60.     {
  61.         $this->description $description;
  62.         return $this;
  63.     }
  64.     public function getImage(): ?string
  65.     {
  66.         return $this->image;
  67.     }
  68.     public function setImage(?string $image): self
  69.     {
  70.         $this->image $image;
  71.         return $this;
  72.     }
  73.     public function getProfession(): ?string
  74.     {
  75.         return $this->profession;
  76.     }
  77.     public function setProfession(?string $profession): self
  78.     {
  79.         $this->profession $profession;
  80.         return $this;
  81.     }
  82.     public function getNom(): ?string
  83.     {
  84.         return $this->nom;
  85.     }
  86.     public function setNom(?string $nom): self
  87.     {
  88.         $this->nom $nom;
  89.         return $this;
  90.     }
  91.     public function getPrenom(): ?string
  92.     {
  93.         return $this->prenom;
  94.     }
  95.     public function setPrenom(?string $prenom): self
  96.     {
  97.         $this->prenom $prenom;
  98.         return $this;
  99.     }
  100.     public function getPoste(): ?string
  101.     {
  102.         return $this->poste;
  103.     }
  104.     public function setPoste(?string $poste): self
  105.     {
  106.         $this->poste $poste;
  107.         return $this;
  108.     }
  109.     public function getPays(): ?string
  110.     {
  111.         return $this->pays;
  112.     }
  113.     public function setPays(?string $pays): self
  114.     {
  115.         $this->pays $pays;
  116.         return $this;
  117.     }
  118. }