<?php

namespace AppBundle\Entity\Product;

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

/**
 * Contrôle du bon état des Equipment
 *
 * @Iri("http://schema.org/EquipmentControl")
 */
#[ORM\Entity(repositoryClass: 'AppBundle\Entity\Product\Repository\EquipmentControlRepository')]
class EquipmentControl extends AbstractControl
{
    /**
     * @var Equipment
     */
    #[ORM\ManyToOne(targetEntity: 'Equipment', inversedBy: 'equipmentControl')]
    #[Groups(['equipmentcontrol', 'equipmentcontrol_list', 'control_edit'])]
    private $equipment;
    /**
     * Set equipment
     *
     * @param \AppBundle\Entity\Product\Equipment $equipment
     *
     * @return EquipmentControl
     */
    public function setEquipment(\AppBundle\Entity\Product\Equipment $equipment = null)
    {
        $this->equipment = $equipment;

        return $this;
    }
    /**
     * Get equipment
     *
     * @return \AppBundle\Entity\Product\Equipment
     */
    public function getEquipment()
    {
        return $this->equipment;
    }
}
