PlaceRepair.php 840 B

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