| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace AppBundle\Entity\Place;
- use AppBundle\Entity\Core\AbstractRepair;
- use Doctrine\ORM\Mapping as ORM;
- use Dunglas\ApiBundle\Annotation\Iri;
- use Symfony\Component\Serializer\Annotation\Groups;
- /**
- * Réparation effectuée sur une Room
- */
- #[ORM\Entity]
- class RoomRepair extends AbstractRepair
- {
- /**
- * @var Room
- */
- #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Place\Room', inversedBy: 'repairs')]
- #[Groups(['roomrepair'])]
- private $room;
- /**
- * Sets room.
- *
- * @param Room $room
- *
- * @return $this
- */
- public function setRoom(Room $room = null)
- {
- $this->room = $room;
- return $this;
- }
- /**
- * Gets room.
- *
- * @return Room
- */
- public function getRoom()
- {
- return $this->room;
- }
- }
|