<?php

namespace AppBundle\Entity\Product;

use AppBundle\Entity\Core\AbstractRepair;
use Doctrine\ORM\Mapping as ORM;
use Dunglas\ApiBundle\Annotation\Iri;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Validator\Constraints as Assert;

/**
 * Réparation effectuée sur un Equipment
 *
 * @Iri("http://schema.org/EquipmentRepair")
 */
#[ORM\Entity(repositoryClass: 'AppBundle\Entity\Product\Repository\EquipmentRepairRepository')]
class EquipmentRepair extends AbstractRepair
{
    /**
     * @var Equipment
     */
    #[ORM\ManyToOne(targetEntity: 'Equipment', inversedBy: 'equipmentRepair')]
    #[Groups(['equipmentrepair', 'equipmentrepair_list', 'repair_edit'])]
    private $equipment;
    /**
     * Sets equipment.
     *
     * @param Equipment $equipment
     *
     * @return $this
     */
    public function setEquipment(Equipment $equipment)
    {
        $this->equipment = $equipment;

        return $this;
    }
    /**
     * Gets equipment.
     *
     * @return Equipment
     */
    public function getEquipment()
    {
        return $this->equipment;
    }
}
