<?php

namespace AppBundle\Entity\Education;

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

/**
 * Complément d'information lié à la catégorie EducationCategory d'un enseignement Education
 */
#[ORM\Entity]
class EducationComplement
{
    use TimestampableEntity;
    use CreatorUpdaterEntity;
    /**
     * @var int
     */
    #[ORM\Column(type: 'integer')]
    #[ORM\Id]
    #[ORM\GeneratedValue(strategy: 'AUTO')]
    #[Groups(['educationcomplement', 'education_reference', 'planning_list', 'educationstudent_reference_educationcurriculum', 'educations_quotas_by_education_list', 'educations_quotas_stats'])]
    private $id;
    /**
     * @var string
     */
    #[ORM\Column(type: 'string', nullable: true)]
    #[Assert\Type(type: 'string')]
    #[Assert\NotNull]
    #[Assert\Choice(callback: ['\AppBundle\Enum\Education\EducationTypeEnum', 'toArray'])]
    #[Groups(['educationcomplement', 'access_details_educationstudent'])]
    private $educationTypeEnum;
    /**
     * @var string
     */
    #[ORM\Column(type: 'string')]
    #[Assert\Type(type: 'string')]
    #[Assert\NotNull]
    #[Assert\Choice(callback: ['\AppBundle\Enum\Education\PratiqueEnum', 'toArray'])]
    #[Groups(['educationcomplement', 'educationcomplement_reference', 'access_details_educationstudent', 'educationcurriculum_reference_education', 'education_reference_educationcomplement', 'student_list_educationstudent', 'student_list_courses', 'intangible_list_educationcurriculums', 'examenconvocation_list_examen', 'my_student_list_educationcurriculum', 'planning_list', 'attendancebooking_list_course', 'generate_attendance', 'report_card_educationstudent', 'presence_attendance_education', 'examen_details_education', 'course_details_education', 'educationstudent_reference_educationcurriculum', 'edu_stu_courses_courses', 'student_registration_courses', 'educationnotation_list_educationstudent', 'education_input_list_educationcurriculum', 'education_input_list_access', 'education_input_list_access', 'access_attendance_detail_attendancebookings', 'education_student_wish_list_educationwish', 'access_intangible_list_intangible', 'worksbyusers_db_work', 'educationstudent_notation_educationcurriculum', 'accesses_no_reregistred_list_educationstudent', 'educations_quotas_by_education_list_educationcomplement', 'educations_quotas_stats_educationcomplement'])]
    private $name;
    /**
     * 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;
    }
    /**
     * Sets educationTypeEnum.
     *
     * @param string $educationTypeEnum
     *
     * @return $this
     */
    public function setEducationTypeEnum($educationTypeEnum)
    {
        $this->educationTypeEnum = $educationTypeEnum;

        return $this;
    }
    /**
     * Gets educationTypeEnum.
     *
     * @return string
     */
    public function getEducationTypeEnum()
    {
        return $this->educationTypeEnum;
    }
    /**
     * Sets name.
     *
     * @param string $name
     *
     * @return $this
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }
    /**
     * Gets name.
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }
}
