src/Entity/Rotation.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RotationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: RotationRepository::class)]
  6. class Rotation
  7. {
  8. #[ORM\Id]
  9. #[ORM\GeneratedValue]
  10. #[ORM\Column]
  11. private ?int $id = null;
  12. #[ORM\Column(length: 255)]
  13. private ?string $jour = null;
  14. #[ORM\Column(length: 255)]
  15. private ?string $repas = null;
  16. #[ORM\Column(length: 255)]
  17. private ?string $semaine = null;
  18. #[ORM\ManyToOne(inversedBy: 'rotations')]
  19. #[ORM\JoinColumn(nullable: false)]
  20. private ?Foodtruck $foodtruck = null;
  21. #[ORM\ManyToOne(inversedBy: 'rotations')]
  22. #[ORM\JoinColumn(nullable: false)]
  23. private ?Emplacement $emplacement = null;
  24. public function getId(): ?int
  25. {
  26. return $this->id;
  27. }
  28. public function getJour(): ?string
  29. {
  30. return $this->jour;
  31. }
  32. public function setJour(string $jour): self
  33. {
  34. $this->jour = $jour;
  35. return $this;
  36. }
  37. public function getRepas(): ?string
  38. {
  39. return $this->repas;
  40. }
  41. public function setRepas(string $repas): self
  42. {
  43. $this->repas = $repas;
  44. return $this;
  45. }
  46. public function getSemaine(): ?string
  47. {
  48. return $this->semaine;
  49. }
  50. public function setSemaine(string $semaine): self
  51. {
  52. $this->semaine = $semaine;
  53. return $this;
  54. }
  55. public function getFoodtruck(): ?Foodtruck
  56. {
  57. return $this->foodtruck;
  58. }
  59. public function setFoodtruck(?Foodtruck $foodtruck): self
  60. {
  61. $this->foodtruck = $foodtruck;
  62. return $this;
  63. }
  64. public function getEmplacement(): ?Emplacement
  65. {
  66. return $this->emplacement;
  67. }
  68. public function setEmplacement(?Emplacement $emplacement): self
  69. {
  70. $this->emplacement = $emplacement;
  71. return $this;
  72. }
  73. }