<?php

namespace AppBundle\Entity\Place;

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


/**
 * Contrôle du bon état des Place
 */
#[ORM\Entity]
class PlaceControl extends AbstractControl
{
    /**
     * @var Place
     */
    #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Place\Place', inversedBy: 'controls')]
    #[Groups(['placecontrol', 'placecontrol_list', 'control_edit'])]
    private $place;
    /**
     * Sets place.
     *
     * @param Place $place
     *
     * @return $this
     */
    public function setPlace(Place $place = null)
    {
        $this->place = $place;

        return $this;
    }
    /**
     * Gets place.
     *
     * @return Place
     */
    public function getPlace()
    {
        return $this->place;
    }
}
