src\Entity\Horaire.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\HoraireRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: HoraireRepository::class)]
  6. #[ORM\Table(name: '`horaire`')]
  7. class Horaire {
  8. #[ORM\Id]
  9. #[ORM\GeneratedValue]
  10. #[ORM\Column]
  11. private ?int $horaire_id = null;
  12. #[ORM\Column(type:"string",length: 50,nullable: false)]
  13. private ?string $jour = null;
  14. #[ORM\Column(type:"string",length: 50,nullable: false)]
  15. private ?string $heure_ouverture = null;
  16. #[ORM\Column(type:"string",length: 50,nullable: false)]
  17. private ?string $heure_fermeture = null;
  18. public function getHoraireId(): ?int
  19. {
  20. return $this->horaire_id;
  21. }
  22. public function setHoraireId(int $horaire_id): static
  23. {
  24. $this->horaire_id = $horaire_id;
  25. return $this;
  26. }
  27. public function getJour(): ?string
  28. {
  29. return $this->jour;
  30. }
  31. public function setJour(string $jour): static
  32. {
  33. $this->jour = $jour;
  34. return $this;
  35. }
  36. public function getHeureOuverture(): ?string
  37. {
  38. return $this->heure_ouverture;
  39. }
  40. public function setHeureOuverture(string $heure_ouverture): static
  41. {
  42. $this->heure_ouverture = $heure_ouverture;
  43. return $this;
  44. }
  45. public function getHeureFermeture(): ?string
  46. {
  47. return $this->heure_fermeture;
  48. }
  49. public function setHeureFermeture(string $heure_fermeture): static
  50. {
  51. $this->heure_fermeture = $heure_fermeture;
  52. return $this;
  53. }
  54. }