RoomRepair.php 821 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace AppBundle\Entity\Place;
  3. use AppBundle\Entity\Core\AbstractRepair;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Dunglas\ApiBundle\Annotation\Iri;
  6. use Symfony\Component\Serializer\Annotation\Groups;
  7. /**
  8. * Réparation effectuée sur une Room
  9. */
  10. #[ORM\Entity]
  11. class RoomRepair extends AbstractRepair
  12. {
  13. /**
  14. * @var Room
  15. */
  16. #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Place\Room', inversedBy: 'repairs')]
  17. #[Groups(['roomrepair'])]
  18. private $room;
  19. /**
  20. * Sets room.
  21. *
  22. * @param Room $room
  23. *
  24. * @return $this
  25. */
  26. public function setRoom(Room $room = null)
  27. {
  28. $this->room = $room;
  29. return $this;
  30. }
  31. /**
  32. * Gets room.
  33. *
  34. * @return Room
  35. */
  36. public function getRoom()
  37. {
  38. return $this->room;
  39. }
  40. }