<?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;
    }
}
