<?php

namespace AppBundle\Entity\Place;

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


/**
 * Réparation effectuée sur un lieu Place
 */
#[ORM\Entity]
class PlaceRepair extends AbstractRepair
{
    /**
     * @var Place
     */
    #[ORM\ManyToOne(targetEntity: 'AppBundle\Entity\Place\Place', inversedBy: 'repairs')]
    #[Groups(['placerepair', 'placerepair_list', 'repair_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;
    }
}
