src/Entity/Approb.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. #[ORM\Entity(repositoryClass: "App\Repository\ApprobRepository")]
  5. #[ORM\Table(name: "Approb")]
  6. class Approb
  7. {
  8. #[ORM\Id]
  9. #[ORM\GeneratedValue]
  10. #[ORM\Column(type:"integer")]
  11. private ?int $id = null;
  12. #[ORM\Column(type:"string", length: 255)]
  13. private string $nomprenom;
  14. #[ORM\Column(type:"string", length: 255)]
  15. private string $email;
  16. // Getters et setters
  17. public function getId(): ?int
  18. {
  19. return $this->id;
  20. }
  21. public function getNomprenom(): string
  22. {
  23. return $this->nomprenom;
  24. }
  25. public function setNomprenom(string $nomprenom): self
  26. {
  27. $this->nomprenom = $nomprenom;
  28. return $this;
  29. }
  30. public function getEmail(): string
  31. {
  32. return $this->email;
  33. }
  34. public function setEmail(string $email): self
  35. {
  36. $this->email = $email;
  37. return $this;
  38. }
  39. }