<?php

namespace AppBundle\Entity\Place;

use AppBundle\Entity\Core\AbstractControl;
use Doctrine\ORM\Mapping as ORM;
use Dunglas\ApiBundle\Annotation\Iri;
use Symfony\Component\Serializer\Annotation\Groups;


/**
 * Contrôle du bon état des Room
 */
#[ORM\Entity]
class RoomControl extends AbstractControl
{
    /**
     * @var Room
     */
    #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Place\Room', inversedBy: 'controls')]
    #[Groups(['roomcontrol'])]
    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;
    }
}
