<?php

namespace AppBundle\Entity\Product;

use AppBundle\Annotation\ExportSplitFields;
use Doctrine\ORM\Mapping as ORM;
use Dunglas\ApiBundle\Annotation\Iri;
use Symfony\Component\Serializer\Annotation\Groups;
use Symfony\Component\Validator\Constraints as Assert;
use AppBundle\Entity\Traits\TimestampableEntity;
use AppBundle\Entity\Traits\CreatorUpdaterEntity;

/**
 * Enum des catégories d'équipements
 *
 * @Iri("http://schema.org/EquipmentList")
 */
#[ORM\Entity]
class EquipmentList
{
    use TimestampableEntity;
    use CreatorUpdaterEntity;
    /**
     * @var int
     */
    #[ORM\Column(type: 'integer')]
    #[ORM\Id]
    #[ORM\GeneratedValue(strategy: 'AUTO')]
    #[Groups(['equipmentlist', 'equipmentlist_reference', 'equipment_reference', 'equipment_list', 'equipment_list_equipmentcomposition', 'equipmentrent_list_equipment', 'equipmentloan_list_equipment', 'equipmentcontrol_list_equipment', 'equipmentrepair_list_equipment', 'equipmentaccounting_list', 'equipmentmediatheque_list', 'equipmentcostume_list', 'place_list_equipmentuseds', 'accessequipment_grid_equipments', 'access_details_equipmentloans', 'access_details_equipments', 'equipment_details', 'equipment_details_equipmentcomposition', 'own_student_access_equipments', 'equipment_availability_form_equipment'])]
    private $id;
    /**
     * @var string
     */
    #[ORM\Column(type: 'string')]
    #[Assert\Type(type: 'string')]
    #[Assert\NotNull]
    #[Assert\Choice(callback: ['\AppBundle\Enum\Product\EquipmentFamillyEnum', 'toArray'])]
    #[Groups(['equipmentlist', 'equipmentlist_reference', 'access_detail_personactivity', 'equipment_reference_equipmentlist', 'equipment_list_equipmentlist', 'equipmentrent_list_equipment', 'equipmentloan_list_equipment', 'equipmentcontrol_list_equipment', 'equipmentrepair_list_equipment', 'equipmentaccounting_list_equipmentlist', 'equipmentcostume_list_equipmentlist', 'place_list_equipmentuseds', 'accessequipment_grid_equipments', 'access_details_equipmentloans', 'access_details_equipments', 'equipment_details_equipmentlist', 'equipment_details_equipmentcomposition', 'event_details_equipments', 'course_details_equipments', 'examen_details_equipments', 'educationalproject_details_equipments', 'event_details_equipments', 'equipment_list_equipmentcomposition'])]
    private $familly;
    /**
     * @var string
     */
    #[ORM\Column(type: 'string', nullable: true)]
    #[Assert\Type(type: 'string')]
    #[Assert\Choice(callback: ['\AppBundle\Enum\Product\EquipmentCategoryEnum', 'toArray'])]
    #[Groups(['equipmentlist', 'equipmentlist_reference', 'access_detail_personactivity', 'equipment_reference_equipmentlist', 'equipment_list_equipmentlist', 'equipmentrent_list_equipment', 'equipmentloan_list_equipment', 'equipmentcontrol_list_equipment', 'equipmentrepair_list_equipment', 'equipmentaccounting_list_equipmentlist', 'equipmentcostume_list_equipmentlist', 'place_list_equipmentuseds', 'accessequipment_grid_equipments', 'access_details_equipmentloans', 'access_details_equipments', 'equipment_details_equipmentlist', 'event_details_equipments', 'course_details_equipments', 'examen_details_equipments', 'event_details_equipments', 'educationalproject_details_equipments'])]
    private $category;
    /**
     * @var string
     */
    #[ORM\Column(type: 'string', nullable: true)]
    #[Assert\Type(type: 'string')]
    #[Assert\Choice(callback: ['\AppBundle\Enum\Product\EquipmentGroupEnum', 'toArray'])]
    #[Groups(['equipmentlist', 'access_detail_personactivity'])]
    private $groupement;
    /**
     * @var string
     */
    #[ORM\Column(type: 'string', nullable: true)]
    #[Assert\Type(type: 'string')]
    #[Assert\Choice(callback: ['\AppBundle\Enum\Product\EquipmentDetailEnum', 'toArray'])]
    #[Groups(['equipmentlist', 'equipmentlist_reference', 'access_detail_personactivity', 'rule_personactivityactive', 'equipment_list_equipmentlist', 'equipmentrent_list_equipment', 'equipmentloan_list_equipment', 'equipmentcontrol_list_equipment', 'equipmentrepair_list_equipment', 'equipmentaccounting_list_equipmentlist', 'equipmentmediatheque_list_instrumentorvoice', 'equipmentcostume_list_equipmentlist', 'place_list_equipmentuseds', 'accessequipment_grid_equipments', 'access_details_equipmentloans', 'access_details_equipments', 'student_list_personactivity', 'adherent_list_personactivity', 'accesses_list_personactivity', 'rule_personactivityactive', 'accesses_rules_personactivityactive', 'othercontact_list_personactivity', 'presence_attendance_eventuser', 'equipment_details_equipmentlist', 'ca_list_personactivity', 'access_details_personactivity', 'event_details_equipments', 'board_list_personactivity', 'equipment_reference_equipmentlist', 'equipment_details_equipmentcomposition', 'course_details_equipments', 'examen_details_equipments', 'educationalproject_details_equipments', 'event_details_equipments', 'adherent_contact_personactivity', 'invitations_list_guest', 'equipment_availability_form_equipment'])]
    private $detail;
    /**
     * Sets id.
     *
     * @param int $id
     *
     * @return $this
     */
    public function setId($id)
    {
        $this->id = $id;

        return $this;
    }
    /**
     * Gets id.
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }
    /**
     * Set familly
     *
     * @param string $familly
     *
     * @return EquipmentList
     */
    public function setFamilly($familly)
    {
        $this->familly = $familly;

        return $this;
    }
    /**
     * Get familly
     *
     * @return string
     */
    public function getFamilly()
    {
        return $this->familly;
    }
    /**
     * Set category
     *
     * @param string $category
     *
     * @return EquipmentList
     */
    public function setCategory($category)
    {
        $this->category = $category;

        return $this;
    }
    /**
     * Get category
     *
     * @return string
     */
    public function getCategory()
    {
        return $this->category;
    }
    /**
     * Set groupement
     *
     * @param string $groupement
     *
     * @return EquipmentList
     */
    public function setGroupement($groupement)
    {
        $this->groupement = $groupement;

        return $this;
    }
    /**
     * Get groupement
     *
     * @return string
     */
    public function getGroupement()
    {
        return $this->groupement;
    }
    /**
     * Set detail
     *
     * @param string $detail
     *
     * @return EquipmentList
     */
    public function setDetail($detail)
    {
        $this->detail = $detail;

        return $this;
    }
    /**
     * Get detail
     *
     * @return string
     */
    public function getDetail()
    {
        return $this->detail;
    }
}
