src/Entity/RegistrationStudentPreRegistration.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTimeImmutable;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\HttpFoundation\File\File;
  8. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  9. use Symfony\Component\Validator\Constraints as Assert;
  10. use App\Repository\RegistrationStudentPreRegistrationRepository;
  11. /**
  12.  * @ORM\Entity(repositoryClass=RegistrationStudentPreRegistrationRepository::class)
  13.  * @Vich\Uploadable
  14.  */
  15. class RegistrationStudentPreRegistration
  16. {
  17.     public const LAST_ETS_TYPE = ['AUCUN' => 'AUCUN''PUBLIQUE' => 'PUBLIQUE''PRIVEE' => 'PRIVEE'];
  18.     public const LV1 = ['ANGLAIS' => 'ANGLAIS'];
  19.     public const LV2 = ['AUCUN' => 'AUCUN''ALLEMAND' => 'ALLEMAND''ESPAGNOLE' => 'ESPAGNOLE'];
  20.     public const GENDER = ['MASCULIN' => 'MASCULIN''FEMININ' => 'FEMININ''INCONNU' => 'INCONNU'];
  21.     public const WHER_RESIDE = ['CHEZ SES PARENTS' => 'CHEZ SES PARENTS''CHEZ SON PERE' => 'CHEZ SON PERE''CHEZ SA MERE' => 'CHEZ SA MERE','CHEZ UN TUTEUR' => 'CHEZ UN TUTEUR'];
  22.     public const PARENT_STATUS = ['CELIBATAIRE' => 'CELIBATAIRE''MARIE(E)' => 'MARIE(E)''VIE MARITALE' => 'VIE MARITALE','DIVORCE(E)' => 'DIVORCE(E)','SEPARE(E)' => 'SEPARE(E)','VEUF(VE)' => 'VEUF(VE)'];
  23.     public const RESPONSIBLE_OF_SCHOOLING = ['LE PERE ET LA MERE' => 'LE PERE ET LA MERE''PERE' => 'PERE''MERE' => 'MERE','AUTRE' => 'AUTRE'];
  24.     /**
  25.      * @ORM\Id
  26.      * @ORM\GeneratedValue
  27.      * @ORM\Column(type="integer")
  28.      */
  29.     private $id;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=RegistrationStudent::class, inversedBy="registrationStudentPreRegistrations")
  32.      */
  33.     private $student;
  34.     /**
  35.      * @ORM\ManyToOne(targetEntity=Establishment::class, inversedBy="registrationStudentPreRegistrations")
  36.      * @ORM\JoinColumn(nullable=false)
  37.      */
  38.     private $establishment;
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity=SettingLevel::class, inversedBy="registrationStudentPreRegistrations")
  41.      */
  42.     private $entryLevel;
  43.     /**
  44.      * @ORM\ManyToOne(targetEntity=SchoolYear::class, inversedBy="registrationStudentPreRegistrations")
  45.      * @ORM\JoinColumn(nullable=false)
  46.      */
  47.     private $schoolYear;
  48.     /**
  49.      * @ORM\Column(type="string", length=60)
  50.      */
  51.     private $code;
  52.     /**
  53.      * @ORM\Column(type="string", length=60, nullable=true)
  54.      */
  55.     private $num_cmu;
  56.     /**
  57.      * @ORM\Column(type="string", length=128)
  58.      */
  59.     private $last_name;
  60.     /**
  61.      * @ORM\Column(type="string", length=128)
  62.      */
  63.     private $first_name;
  64.     /**
  65.      * @ORM\Column(type="string", length=60, nullable=true)
  66.      * @Assert\Length(
  67.      *      min = 10,
  68.      *      max = 10,
  69.      *      minMessage = "Le numero doit comporter au moins {{ limit }} charactères",
  70.      *      maxMessage = "Le numero ne peut pas être plus long que {{ limit }} charactères"
  71.      * )
  72.      * @Assert\Regex(pattern="/^[0-9]{10}$/", message="Mettez un numero valide (99999999) S.V.P") 
  73.      */
  74.     private $notification_phone_number;
  75.     /**
  76.      * @ORM\Column(type="string", length=60, nullable=true)
  77.      */
  78.     private $notification_name;
  79.     /**
  80.      * @ORM\Column(type="string", length=60, nullable=true)
  81.      */
  82.     private $notification_watsapp_number;
  83.     /**
  84.      * @ORM\Column(type="text", length=60, nullable=true)
  85.      */
  86.     private $observation;
  87.     /**
  88.      * @ORM\Column(type="string", length=128, nullable=true)
  89.     */
  90.     private $location;
  91.     /**
  92.      * @ORM\Column(type="string", length=60, nullable=true)
  93.     */
  94.     private $gender;
  95.     /**
  96.      * @ORM\Column(type="date_immutable")
  97.     */
  98.     private $birthday;
  99.     /**
  100.      * @ORM\Column(type="string", length=128, nullable=true)
  101.     */
  102.     private $birth_certificate_number;
  103.     /**
  104.      * @ORM\Column(type="datetime_immutable")
  105.     */
  106.     private $created_at;
  107.     /**
  108.      * @ORM\Column(type="datetime_immutable")
  109.      */
  110.     private $updated_at;
  111.     /**
  112.      * @ORM\Column(type="integer", nullable=true)
  113.      */
  114.     private $created_by;
  115.     /**
  116.      * @ORM\Column(type="integer", nullable=true)
  117.      */
  118.     private $updated_by;
  119.     /**
  120.      * @ORM\Column(type="string", length=255, nullable=true)
  121.      */
  122.     private $image;
  123.     /**
  124.      * NOTE: This is not a mapped field of entity metadata, just a simple property.
  125.      * 
  126.      * @Vich\UploadableField(mapping="student", fileNameProperty="image")
  127.      * 
  128.      * @var File|null
  129.      * @Assert\File(
  130.      * maxSize = "25M",
  131.      * mimeTypes = {"image/png", "image/jpg", "image/jpeg"},
  132.      * mimeTypesMessage = "Veuillez télécharger une image valide (png, jpg, jpeg)",
  133.      * maxSizeMessage = "Le fichier est trop volumineux ({{size}} {{suffix}}). La taille maximale autorisée est {{limit}} {{suffix}}"
  134.      * )
  135.      */
  136.     private $imageFile;
  137.     /**
  138.      * @ORM\Column(type="date_immutable")
  139.     */
  140.     private $create_date;
  141.     /**
  142.      * @ORM\Column(type="boolean")
  143.      * est affecte(e)
  144.      */
  145.     private $is_affected;
  146.     /**
  147.      * @ORM\Column(type="boolean")
  148.      */
  149.     private $is_redoubling;
  150.     /**
  151.      * @ORM\Column(type="string", length=128, nullable=true)
  152.      */
  153.     private $last_school_attended;
  154.     /**
  155.      * @ORM\Column(type="string", length=128, nullable=true)
  156.      */
  157.     private $last_school_attended_type;
  158.     /**
  159.      * @ORM\Column(type="string", length=128, nullable=true)
  160.     */
  161.     private $birth_location;
  162.     /**
  163.      * @ORM\Column(type="boolean")
  164.     */
  165.     private $is_subject_entry_test;
  166.     /**
  167.      * @ORM\Column(type="boolean")
  168.     */
  169.     private $is_entry_test_done;
  170.     /**
  171.      * @ORM\Column(type="boolean")
  172.     */
  173.     private $is_entry_test_performed;
  174.     /**
  175.      * @ORM\Column(type="string", length=128, nullable=true)
  176.     */
  177.     private $entry_test_result;
  178.     /**
  179.      * @ORM\Column(type="boolean")
  180.     */
  181.     private $is_subject_toxicological_test;
  182.     /**
  183.      * @ORM\Column(type="boolean")
  184.      */
  185.     private $is_toxicological_test_performed;
  186.     /**
  187.      * @ORM\Column(type="boolean")
  188.      */
  189.     private $is_toxicological_test_refused;
  190.     /**
  191.      * @ORM\Column(type="text", nullable=true)
  192.     */
  193.     private $toxicological_test_appreciation;
  194.     /**
  195.      * @ORM\Column(type="string", length=128, nullable=true)
  196.     */
  197.     private $toxicological_test_result;
  198.     /**
  199.      * @ORM\Column(type="boolean")
  200.     */
  201.     private $is_subject_psychological_test;
  202.     /**
  203.      * @ORM\Column(type="boolean")
  204.      */
  205.     private $is_psychological_test_performed;
  206.     /**
  207.      * @ORM\Column(type="string", length=128, nullable=true)
  208.     */
  209.     private $psychological_test_result;
  210.     /**
  211.      * @ORM\Column(type="string", length=60)
  212.      */
  213.     private $registration_number;
  214.     /**
  215.      * @ORM\Column(type="string", length=60, nullable=true)
  216.      */
  217.     private $lv1;
  218.     /**
  219.      * @ORM\Column(type="string", length=60, nullable=true)
  220.      */
  221.     private $lv2;
  222.     /**
  223.      * @ORM\Column(type="string", length=60, nullable=true)
  224.      */
  225.     private $art_or_musique;
  226.     /**
  227.      * @ORM\Column(type="string", length=60, nullable=true)
  228.      */
  229.     private $nationality;
  230.     /**
  231.      * @ORM\Column(type="string", length=60, nullable=true)
  232.      */
  233.     private $where_resides;
  234.     /**
  235.      * @ORM\Column(type="string", length=60, nullable=true)
  236.     */
  237.     private $parent_status;
  238.     /**
  239.      * @ORM\Column(type="boolean")
  240.     */
  241.     private $is_parntal_authority_father;
  242.     /**
  243.      * @ORM\Column(type="boolean")
  244.     */
  245.     private $is_father_call_to_emergency;
  246.     /**
  247.      * @ORM\Column(type="string", length=60, nullable=true)
  248.      */
  249.     private $father_last_name;
  250.     /**
  251.      * @ORM\Column(type="string", length=60, nullable=true)
  252.      */
  253.     private $father_first_name;
  254.     /**
  255.      * @ORM\Column(type="string", length=128, nullable=true)
  256.      */
  257.     private $father_address;
  258.     /**
  259.      * @ORM\Column(type="string", length=60, nullable=true)
  260.      */
  261.     private $father_phone_number;
  262.     /**
  263.      * @ORM\Column(type="string", length=128, nullable=true)
  264.      */
  265.     private $father_post;
  266.     /**
  267.      * @ORM\Column(type="string", length=128, nullable=true)
  268.      */
  269.     private $father_location;
  270.     /**
  271.      * @ORM\Column(type="string", length=128, nullable=true)
  272.      */
  273.     private $father_email;
  274.     /**
  275.      * @ORM\Column(type="boolean")
  276.     */
  277.     private $is_parntal_authority_mother;
  278.     /**
  279.      * @ORM\Column(type="boolean")
  280.     */
  281.     private $is_mother_call_to_emergency;
  282.     /**
  283.      * @ORM\Column(type="string", length=60, nullable=true)
  284.      */
  285.     private $mother_last_name;
  286.     /**
  287.      * @ORM\Column(type="string", length=60, nullable=true)
  288.      */
  289.     private $mother_first_name;
  290.     /**
  291.      * @ORM\Column(type="string", length=128, nullable=true)
  292.      */
  293.     private $mother_address;
  294.     /**
  295.      * @ORM\Column(type="string", length=60, nullable=true)
  296.      */
  297.     private $mother_phone_number;
  298.     /**
  299.      * @ORM\Column(type="string", length=128, nullable=true)
  300.      */
  301.     private $mother_post;
  302.     /**
  303.      * @ORM\Column(type="string", length=128, nullable=true)
  304.      */
  305.     private $mother_location;
  306.     /**
  307.      * @ORM\Column(type="string", length=128, nullable=true)
  308.      */
  309.     private $mother_email;
  310.     /**
  311.      * @ORM\Column(type="string", length=60, nullable=true)
  312.     */
  313.     private $responsible_of_schooling;
  314.     /**
  315.      * @ORM\Column(type="string", length=60, nullable=true)
  316.      */
  317.     private $responsible_of_schooling_last_name;
  318.     /**
  319.      * @ORM\Column(type="string", length=60, nullable=true)
  320.      */
  321.     private $responsible_of_schooling_first_name;
  322.     /**
  323.      * @ORM\Column(type="string", length=128, nullable=true)
  324.      */
  325.     private $responsible_of_schooling_address;
  326.     /**
  327.      * @ORM\Column(type="string", length=60, nullable=true)
  328.      */
  329.     private $responsible_of_schooling_phone_number;
  330.     /**
  331.      * @ORM\Column(type="string", length=128, nullable=true)
  332.      */
  333.     private $responsible_of_schooling_post;
  334.     /**
  335.      * @ORM\Column(type="string", length=128, nullable=true)
  336.      */
  337.     private $responsible_of_schooling_location;
  338.     /**
  339.      * @ORM\Column(type="boolean")
  340.     */
  341.     private $is_need_canteen;
  342.     /**
  343.      * @ORM\Column(type="boolean")
  344.     */
  345.     private $is_need_transport;
  346.     /**
  347.      * @ORM\Column(type="boolean")
  348.     */
  349.     private $is_need_keep;
  350.     /**
  351.      * @ORM\Column(type="boolean")
  352.     */
  353.     private $is_need_extrat_activity;
  354.     /**
  355.      * @ORM\Column(type="integer", nullable=true)
  356.     */
  357.     private $hold_student_id;
  358.     /**
  359.      * @ORM\Column(type="string", length=128, nullable=true)
  360.     */
  361.     private $accompanying_person_name;
  362.     /**
  363.      * @ORM\Column(type="string", length=128, nullable=true)
  364.     */
  365.     private $accompanying_person_phone_number;
  366.     /**
  367.      * @ORM\Column(type="string", length=128, nullable=true)
  368.     */
  369.     private $accompanying_person_name_2;
  370.     /**
  371.      * @ORM\Column(type="string", length=128, nullable=true)
  372.     */
  373.     private $accompanying_person_phone_number_2;
  374.     /**
  375.      * @ORM\Column(type="string", length=128, nullable=true)
  376.     */
  377.     private $accompanying_person_name_3;
  378.     /**
  379.      * @ORM\Column(type="string", length=128, nullable=true)
  380.     */
  381.     private $accompanying_person_phone_number_3;
  382.     /**
  383.      * @ORM\ManyToMany(targetEntity=SettingLevel::class, inversedBy="classJumpRegistrationStudentPreRegistrations")
  384.      */
  385.     private $classJumps;
  386.     /**
  387.      * @ORM\OneToMany(targetEntity=RegistrationStudentRegistration::class, mappedBy="registrationStudentPreRegistration")
  388.      */
  389.     private $registrationStudentRegistrations;
  390.     /**
  391.      * @ORM\OneToMany(targetEntity=PreRegistrationEntreTestReportCard::class, mappedBy="registrationStudentPreRegistration")
  392.      */
  393.     private $preRegistrationEntreTestReportCards;
  394.     /**
  395.      * @ORM\Column(type="text", nullable=true)
  396.      */
  397.     private $final_decision_note;
  398.     /**
  399.      * @ORM\Column(type="string", length=128, nullable=true)
  400.     */
  401.     private $last_previous_class;
  402.     /**
  403.      * @ORM\OneToMany(targetEntity=ToxicologicalTestResult::class, mappedBy="registrationStudentPreRegistration")
  404.      */
  405.     private $toxicologicalTestResults;
  406.     public function __construct()
  407.     {
  408.         $this->is_subject_toxicological_test false;
  409.         $this->is_subject_entry_test false;
  410.         $this->is_subject_psychological_test false;
  411.         $this->is_need_canteen false;
  412.         $this->is_need_transport false;
  413.         $this->is_need_keep false;
  414.         $this->is_need_extrat_activity false;
  415.         $this->create_date = new DateTimeImmutable();
  416.         $this->is_redoubling false;
  417.         $this->is_affected false;
  418.         $this->is_parntal_authority_father false;
  419.         $this->is_parntal_authority_mother false;
  420.         $this->is_entry_test_done false;
  421.         $this->is_entry_test_performed false;
  422.         $this->is_toxicological_test_performed false;
  423.         $this->is_toxicological_test_refused false;
  424.         $this->is_psychological_test_performed false;
  425.         $this->classJumps = new ArrayCollection();
  426.         $this->registrationStudentRegistrations = new ArrayCollection();
  427.         $this->preRegistrationEntreTestReportCards = new ArrayCollection();
  428.         $this->toxicologicalTestResults = new ArrayCollection();
  429.     }
  430.     public function getName(){
  431.         return $this->getEntryLevel()->getLabel() . ' ' $this->getRegistrationNumber() . ' '  .$this->getLastName(). ' '.$this->getFirstName();
  432.     }
  433.     /**
  434.      * If manually uploading a file (i.e. not using Symfony Form) ensure an instance
  435.      * of 'UploadedFile' is injected into this setter to trigger the update. If this
  436.      * bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
  437.      * must be able to accept an instance of 'File' as the bundle will inject one here
  438.      * during Doctrine hydration.
  439.      *
  440.      * @param File|\Symfony\Component\HttpFoundation\File\UploadedFile|null $imageFile
  441.      */
  442.     public function setImageFile(?File $imageFile null): void
  443.     {
  444.         $this->imageFile $imageFile;
  445.         if (null !== $imageFile) {
  446.             // It is required that at least one field changes if you are using doctrine
  447.             // otherwise the event listeners won't be called and the file is lost
  448.             $this->updated_at = new \DateTimeImmutable();
  449.         }
  450.     }
  451.     public function getImageFile(): ?File
  452.     {
  453.         return $this->imageFile;
  454.     }
  455.     public function __toString()
  456.     {
  457.         return $this->getName();
  458.     }
  459.     public function getId(): ?int
  460.     {
  461.         return $this->id;
  462.     }
  463.     public function getStudent(): ?RegistrationStudent
  464.     {
  465.         return $this->student;
  466.     }
  467.     public function setStudent(?RegistrationStudent $student): self
  468.     {
  469.         $this->student $student;
  470.         return $this;
  471.     }
  472.     public function getEstablishment(): ?Establishment
  473.     {
  474.         return $this->establishment;
  475.     }
  476.     public function setEstablishment(?Establishment $establishment): self
  477.     {
  478.         $this->establishment $establishment;
  479.         return $this;
  480.     }
  481.     public function getEntryLevel(): ?SettingLevel
  482.     {
  483.         return $this->entryLevel;
  484.     }
  485.     public function setEntryLevel(?SettingLevel $entryLevel): self
  486.     {
  487.         $this->entryLevel $entryLevel;
  488.         return $this;
  489.     }
  490.     public function getCode(): ?string
  491.     {
  492.         return $this->code;
  493.     }
  494.     public function setCode(string $code): self
  495.     {
  496.         $this->code $code;
  497.         return $this;
  498.     }
  499.     public function getLastName(): ?string
  500.     {
  501.         return $this->last_name;
  502.     }
  503.     public function setLastName(string $last_name): self
  504.     {
  505.         $this->last_name $last_name;
  506.         return $this;
  507.     }
  508.     public function getFirstName(): ?string
  509.     {
  510.         return $this->first_name;
  511.     }
  512.     public function setFirstName(string $first_name): self
  513.     {
  514.         $this->first_name $first_name;
  515.         return $this;
  516.     }
  517.     public function getNotificationPhoneNumber(): ?string
  518.     {
  519.         return $this->notification_phone_number;
  520.     }
  521.     public function setNotificationPhoneNumber(?string $notification_phone_number): self
  522.     {
  523.         $this->notification_phone_number $notification_phone_number;
  524.         return $this;
  525.     }
  526.     public function getNotificationName(): ?string
  527.     {
  528.         return $this->notification_name;
  529.     }
  530.     public function setNotificationName(?string $notification_name): self
  531.     {
  532.         $this->notification_name $notification_name;
  533.         return $this;
  534.     }
  535.     public function getObservation(): ?string
  536.     {
  537.         return $this->observation;
  538.     }
  539.     public function setObservation(?string $observation): self
  540.     {
  541.         $this->observation $observation;
  542.         return $this;
  543.     }
  544.     public function getLocation(): ?string
  545.     {
  546.         return $this->location;
  547.     }
  548.     public function setLocation(?string $location): self
  549.     {
  550.         $this->location $location;
  551.         return $this;
  552.     }
  553.     public function getGender(): ?string
  554.     {
  555.         return $this->gender;
  556.     }
  557.     public function setGender(?string $gender): self
  558.     {
  559.         $this->gender $gender;
  560.         return $this;
  561.     }
  562.     public function getBirthday(): ?\DateTimeImmutable
  563.     {
  564.         return $this->birthday;
  565.     }
  566.     public function setBirthday(\DateTimeImmutable $birthday): self
  567.     {
  568.         $this->birthday $birthday;
  569.         return $this;
  570.     }
  571.     public function getCreatedAt(): ?\DateTimeImmutable
  572.     {
  573.         return $this->created_at;
  574.     }
  575.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  576.     {
  577.         $this->created_at $created_at;
  578.         return $this;
  579.     }
  580.     public function getUpdatedAt(): ?\DateTimeImmutable
  581.     {
  582.         return $this->updated_at;
  583.     }
  584.     public function setUpdatedAt(\DateTimeImmutable $updated_at): self
  585.     {
  586.         $this->updated_at $updated_at;
  587.         return $this;
  588.     }
  589.     public function getCreatedBy(): ?int
  590.     {
  591.         return $this->created_by;
  592.     }
  593.     public function setCreatedBy(?int $created_by): self
  594.     {
  595.         $this->created_by $created_by;
  596.         return $this;
  597.     }
  598.     public function getUpdatedBy(): ?int
  599.     {
  600.         return $this->updated_by;
  601.     }
  602.     public function setUpdatedBy(?int $updated_by): self
  603.     {
  604.         $this->updated_by $updated_by;
  605.         return $this;
  606.     }
  607.     public function getImage(): ?string
  608.     {
  609.         return $this->image;
  610.     }
  611.     public function setImage(?string $image): self
  612.     {
  613.         $this->image $image;
  614.         return $this;
  615.     }
  616.     public function getCreateDate(): ?\DateTimeImmutable
  617.     {
  618.         return $this->create_date;
  619.     }
  620.     public function setCreateDate(\DateTimeImmutable $create_date): self
  621.     {
  622.         $this->create_date $create_date;
  623.         return $this;
  624.     }
  625.     public function getIsAffected(): ?bool
  626.     {
  627.         return $this->is_affected;
  628.     }
  629.     public function setIsAffected(bool $is_affected): self
  630.     {
  631.         $this->is_affected $is_affected;
  632.         return $this;
  633.     }
  634.     public function getIsRedoubling(): ?bool
  635.     {
  636.         return $this->is_redoubling;
  637.     }
  638.     public function setIsRedoubling(bool $is_redoubling): self
  639.     {
  640.         $this->is_redoubling $is_redoubling;
  641.         return $this;
  642.     }
  643.     public function getLastSchoolAttended(): ?string
  644.     {
  645.         return $this->last_school_attended;
  646.     }
  647.     public function setLastSchoolAttended(?string $last_school_attended): self
  648.     {
  649.         $this->last_school_attended $last_school_attended;
  650.         return $this;
  651.     }
  652.     public function getLastSchoolAttendedType(): ?string
  653.     {
  654.         return $this->last_school_attended_type;
  655.     }
  656.     public function setLastSchoolAttendedType(?string $last_school_attended_type): self
  657.     {
  658.         $this->last_school_attended_type $last_school_attended_type;
  659.         return $this;
  660.     }
  661.     public function getBirthLocation(): ?string
  662.     {
  663.         return $this->birth_location;
  664.     }
  665.     public function setBirthLocation(?string $birth_location): self
  666.     {
  667.         $this->birth_location $birth_location;
  668.         return $this;
  669.     }
  670.     public function getIsEntryTestPerformed(): ?bool
  671.     {
  672.         return $this->is_entry_test_performed;
  673.     }
  674.     public function setIsEntryTestPerformed(bool $is_entry_test_performed): self
  675.     {
  676.         $this->is_entry_test_performed $is_entry_test_performed;
  677.         return $this;
  678.     }
  679.     public function getEntryTestResult(): ?string
  680.     {
  681.         return $this->entry_test_result;
  682.     }
  683.     public function setEntryTestResult(?string $entry_test_result): self
  684.     {
  685.         $this->entry_test_result $entry_test_result;
  686.         return $this;
  687.     }
  688.     public function getIsToxicologicalTestPerformed(): ?bool
  689.     {
  690.         return $this->is_toxicological_test_performed;
  691.     }
  692.     public function setIsToxicologicalTestPerformed(bool $is_toxicological_test_performed): self
  693.     {
  694.         $this->is_toxicological_test_performed $is_toxicological_test_performed;
  695.         return $this;
  696.     }
  697.     public function getToxicologicalTestResult(): ?string
  698.     {
  699.         return $this->toxicological_test_result;
  700.     }
  701.     public function setToxicologicalTestResult(?string $toxicological_test_result): self
  702.     {
  703.         $this->toxicological_test_result $toxicological_test_result;
  704.         return $this;
  705.     }
  706.     public function getIsPsychologicalTestPerformed(): ?bool
  707.     {
  708.         return $this->is_psychological_test_performed;
  709.     }
  710.     public function setIsPsychologicalTestPerformed(bool $is_psychological_test_performed): self
  711.     {
  712.         $this->is_psychological_test_performed $is_psychological_test_performed;
  713.         return $this;
  714.     }
  715.     public function getPsychologicalTestResult(): ?string
  716.     {
  717.         return $this->psychological_test_result;
  718.     }
  719.     public function setPsychologicalTestResult(?string $psychological_test_result): self
  720.     {
  721.         $this->psychological_test_result $psychological_test_result;
  722.         return $this;
  723.     }
  724.     public function getRegistrationNumber(): ?string
  725.     {
  726.         return $this->registration_number;
  727.     }
  728.     public function setRegistrationNumber(string $registration_number): self
  729.     {
  730.         $this->registration_number $registration_number;
  731.         return $this;
  732.     }
  733.     public function getLv1(): ?string
  734.     {
  735.         return $this->lv1;
  736.     }
  737.     public function setLv1(?string $lv1): self
  738.     {
  739.         $this->lv1 $lv1;
  740.         return $this;
  741.     }
  742.     public function getLv2(): ?string
  743.     {
  744.         return $this->lv2;
  745.     }
  746.     public function setLv2(?string $lv2): self
  747.     {
  748.         $this->lv2 $lv2;
  749.         return $this;
  750.     }
  751.     public function getNationality(): ?string
  752.     {
  753.         return $this->nationality;
  754.     }
  755.     public function setNationality(?string $nationality): self
  756.     {
  757.         $this->nationality $nationality;
  758.         return $this;
  759.     }
  760.     public function getWhereResides(): ?string
  761.     {
  762.         return $this->where_resides;
  763.     }
  764.     public function setWhereResides(?string $where_resides): self
  765.     {
  766.         $this->where_resides $where_resides;
  767.         return $this;
  768.     }
  769.     public function getParentStatus(): ?string
  770.     {
  771.         return $this->parent_status;
  772.     }
  773.     public function setParentStatus(?string $parent_status): self
  774.     {
  775.         $this->parent_status $parent_status;
  776.         return $this;
  777.     }
  778.     public function getIsParntalAuthorityFather(): ?bool
  779.     {
  780.         return $this->is_parntal_authority_father;
  781.     }
  782.     public function setIsParntalAuthorityFather(bool $is_parntal_authority_father): self
  783.     {
  784.         $this->is_parntal_authority_father $is_parntal_authority_father;
  785.         return $this;
  786.     }
  787.     public function getIsFatherCallToEmergency(): ?bool
  788.     {
  789.         return $this->is_father_call_to_emergency;
  790.     }
  791.     public function setIsFatherCallToEmergency(bool $is_father_call_to_emergency): self
  792.     {
  793.         $this->is_father_call_to_emergency $is_father_call_to_emergency;
  794.         return $this;
  795.     }
  796.     public function getFatherLastName(): ?string
  797.     {
  798.         return $this->father_last_name;
  799.     }
  800.     public function setFatherLastName(?string $father_last_name): self
  801.     {
  802.         $this->father_last_name $father_last_name;
  803.         return $this;
  804.     }
  805.     public function getFatherFirstName(): ?string
  806.     {
  807.         return $this->father_first_name;
  808.     }
  809.     public function setFatherFirstName(?string $father_first_name): self
  810.     {
  811.         $this->father_first_name $father_first_name;
  812.         return $this;
  813.     }
  814.     public function getFatherAddress(): ?string
  815.     {
  816.         return $this->father_address;
  817.     }
  818.     public function setFatherAddress(?string $father_address): self
  819.     {
  820.         $this->father_address $father_address;
  821.         return $this;
  822.     }
  823.     public function getFatherPhoneNumber(): ?string
  824.     {
  825.         return $this->father_phone_number;
  826.     }
  827.     public function setFatherPhoneNumber(?string $father_phone_number): self
  828.     {
  829.         $this->father_phone_number $father_phone_number;
  830.         return $this;
  831.     }
  832.     public function getFatherPost(): ?string
  833.     {
  834.         return $this->father_post;
  835.     }
  836.     public function setFatherPost(?string $father_post): self
  837.     {
  838.         $this->father_post $father_post;
  839.         return $this;
  840.     }
  841.     public function getFatherLocation(): ?string
  842.     {
  843.         return $this->father_location;
  844.     }
  845.     public function setFatherLocation(?string $father_location): self
  846.     {
  847.         $this->father_location $father_location;
  848.         return $this;
  849.     }
  850.     public function getFatherEmail(): ?string
  851.     {
  852.         return $this->father_email;
  853.     }
  854.     public function setFatherEmail(?string $father_email): self
  855.     {
  856.         $this->father_email $father_email;
  857.         return $this;
  858.     }
  859.     public function getIsParntalAuthorityMother(): ?bool
  860.     {
  861.         return $this->is_parntal_authority_mother;
  862.     }
  863.     public function setIsParntalAuthorityMother(bool $is_parntal_authority_mother): self
  864.     {
  865.         $this->is_parntal_authority_mother $is_parntal_authority_mother;
  866.         return $this;
  867.     }
  868.     public function getIsMotherCallToEmergency(): ?bool
  869.     {
  870.         return $this->is_mother_call_to_emergency;
  871.     }
  872.     public function setIsMotherCallToEmergency(bool $is_mother_call_to_emergency): self
  873.     {
  874.         $this->is_mother_call_to_emergency $is_mother_call_to_emergency;
  875.         return $this;
  876.     }
  877.     public function getMotherLastName(): ?string
  878.     {
  879.         return $this->mother_last_name;
  880.     }
  881.     public function setMotherLastName(?string $mother_last_name): self
  882.     {
  883.         $this->mother_last_name $mother_last_name;
  884.         return $this;
  885.     }
  886.     public function getMotherFirstName(): ?string
  887.     {
  888.         return $this->mother_first_name;
  889.     }
  890.     public function setMotherFirstName(?string $mother_first_name): self
  891.     {
  892.         $this->mother_first_name $mother_first_name;
  893.         return $this;
  894.     }
  895.     public function getMotherAddress(): ?string
  896.     {
  897.         return $this->mother_address;
  898.     }
  899.     public function setMotherAddress(?string $mother_address): self
  900.     {
  901.         $this->mother_address $mother_address;
  902.         return $this;
  903.     }
  904.     public function getMotherPhoneNumber(): ?string
  905.     {
  906.         return $this->mother_phone_number;
  907.     }
  908.     public function setMotherPhoneNumber(?string $mother_phone_number): self
  909.     {
  910.         $this->mother_phone_number $mother_phone_number;
  911.         return $this;
  912.     }
  913.     public function getMotherPost(): ?string
  914.     {
  915.         return $this->mother_post;
  916.     }
  917.     public function setMotherPost(?string $mother_post): self
  918.     {
  919.         $this->mother_post $mother_post;
  920.         return $this;
  921.     }
  922.     public function getMotherLocation(): ?string
  923.     {
  924.         return $this->mother_location;
  925.     }
  926.     public function setMotherLocation(?string $mother_location): self
  927.     {
  928.         $this->mother_location $mother_location;
  929.         return $this;
  930.     }
  931.     public function getMotherEmail(): ?string
  932.     {
  933.         return $this->mother_email;
  934.     }
  935.     public function setMotherEmail(?string $mother_email): self
  936.     {
  937.         $this->mother_email $mother_email;
  938.         return $this;
  939.     }
  940.     public function getResponsibleOfSchooling(): ?string
  941.     {
  942.         return $this->responsible_of_schooling;
  943.     }
  944.     public function setResponsibleOfSchooling(?string $responsible_of_schooling): self
  945.     {
  946.         $this->responsible_of_schooling $responsible_of_schooling;
  947.         return $this;
  948.     }
  949.     public function getResponsibleOfSchoolingLastName(): ?string
  950.     {
  951.         return $this->responsible_of_schooling_last_name;
  952.     }
  953.     public function setResponsibleOfSchoolingLastName(?string $responsible_of_schooling_last_name): self
  954.     {
  955.         $this->responsible_of_schooling_last_name $responsible_of_schooling_last_name;
  956.         return $this;
  957.     }
  958.     public function getResponsibleOfSchoolingFirstName(): ?string
  959.     {
  960.         return $this->responsible_of_schooling_first_name;
  961.     }
  962.     public function setResponsibleOfSchoolingFirstName(?string $responsible_of_schooling_first_name): self
  963.     {
  964.         $this->responsible_of_schooling_first_name $responsible_of_schooling_first_name;
  965.         return $this;
  966.     }
  967.     public function getResponsibleOfSchoolingAddress(): ?string
  968.     {
  969.         return $this->responsible_of_schooling_address;
  970.     }
  971.     public function setResponsibleOfSchoolingAddress(?string $responsible_of_schooling_address): self
  972.     {
  973.         $this->responsible_of_schooling_address $responsible_of_schooling_address;
  974.         return $this;
  975.     }
  976.     public function getResponsibleOfSchoolingPhoneNumber(): ?string
  977.     {
  978.         return $this->responsible_of_schooling_phone_number;
  979.     }
  980.     public function setResponsibleOfSchoolingPhoneNumber(?string $responsible_of_schooling_phone_number): self
  981.     {
  982.         $this->responsible_of_schooling_phone_number $responsible_of_schooling_phone_number;
  983.         return $this;
  984.     }
  985.     public function getResponsibleOfSchoolingPost(): ?string
  986.     {
  987.         return $this->responsible_of_schooling_post;
  988.     }
  989.     public function setResponsibleOfSchoolingPost(?string $responsible_of_schooling_post): self
  990.     {
  991.         $this->responsible_of_schooling_post $responsible_of_schooling_post;
  992.         return $this;
  993.     }
  994.     public function getResponsibleOfSchoolingLocation(): ?string
  995.     {
  996.         return $this->responsible_of_schooling_location;
  997.     }
  998.     public function setResponsibleOfSchoolingLocation(?string $responsible_of_schooling_location): self
  999.     {
  1000.         $this->responsible_of_schooling_location $responsible_of_schooling_location;
  1001.         return $this;
  1002.     }
  1003.     public function getIsNeedCanteen(): ?bool
  1004.     {
  1005.         return $this->is_need_canteen;
  1006.     }
  1007.     public function setIsNeedCanteen(bool $is_need_canteen): self
  1008.     {
  1009.         $this->is_need_canteen $is_need_canteen;
  1010.         return $this;
  1011.     }
  1012.     public function getIsNeedTransport(): ?bool
  1013.     {
  1014.         return $this->is_need_transport;
  1015.     }
  1016.     public function setIsNeedTransport(bool $is_need_transport): self
  1017.     {
  1018.         $this->is_need_transport $is_need_transport;
  1019.         return $this;
  1020.     }
  1021.     public function getIsNeedKeep(): ?bool
  1022.     {
  1023.         return $this->is_need_keep;
  1024.     }
  1025.     public function setIsNeedKeep(bool $is_need_keep): self
  1026.     {
  1027.         $this->is_need_keep $is_need_keep;
  1028.         return $this;
  1029.     }
  1030.     public function getIsNeedExtratActivity(): ?bool
  1031.     {
  1032.         return $this->is_need_extrat_activity;
  1033.     }
  1034.     public function setIsNeedExtratActivity(bool $is_need_extrat_activity): self
  1035.     {
  1036.         $this->is_need_extrat_activity $is_need_extrat_activity;
  1037.         return $this;
  1038.     }
  1039.     public function getAccompanyingPersonName(): ?string
  1040.     {
  1041.         return $this->accompanying_person_name;
  1042.     }
  1043.     public function setAccompanyingPersonName(?string $accompanying_person_name): self
  1044.     {
  1045.         $this->accompanying_person_name $accompanying_person_name;
  1046.         return $this;
  1047.     }
  1048.     public function getAccompanyingPersonPhoneNumber(): ?string
  1049.     {
  1050.         return $this->accompanying_person_phone_number;
  1051.     }
  1052.     public function setAccompanyingPersonPhoneNumber(?string $accompanying_person_phone_number): self
  1053.     {
  1054.         $this->accompanying_person_phone_number $accompanying_person_phone_number;
  1055.         return $this;
  1056.     }
  1057.     public function getSchoolYear(): ?SchoolYear
  1058.     {
  1059.         return $this->schoolYear;
  1060.     }
  1061.     public function setSchoolYear(?SchoolYear $schoolYear): self
  1062.     {
  1063.         $this->schoolYear $schoolYear;
  1064.         return $this;
  1065.     }
  1066.     public function getNotificationWatsappNumber(): ?string
  1067.     {
  1068.         return $this->notification_watsapp_number;
  1069.     }
  1070.     public function setNotificationWatsappNumber(?string $notification_watsapp_number): self
  1071.     {
  1072.         $this->notification_watsapp_number $notification_watsapp_number;
  1073.         return $this;
  1074.     }
  1075.     public function getIsEntryTestDone(): ?bool
  1076.     {
  1077.         return $this->is_entry_test_done;
  1078.     }
  1079.     public function setIsEntryTestDone(bool $is_entry_test_done): self
  1080.     {
  1081.         $this->is_entry_test_done $is_entry_test_done;
  1082.         return $this;
  1083.     }
  1084.     /**
  1085.      * @return Collection|SettingLevel[]
  1086.      */
  1087.     public function getClassJumps(): Collection
  1088.     {
  1089.         return $this->classJumps;
  1090.     }
  1091.     public function addClassJump(SettingLevel $classJump): self
  1092.     {
  1093.         if (!$this->classJumps->contains($classJump)) {
  1094.             $this->classJumps[] = $classJump;
  1095.         }
  1096.         return $this;
  1097.     }
  1098.     public function removeClassJump(SettingLevel $classJump): self
  1099.     {
  1100.         $this->classJumps->removeElement($classJump);
  1101.         return $this;
  1102.     }
  1103.     public function getIsClassJump(): ?bool
  1104.     {
  1105.         return count($this->getClassJumps()) > 0;
  1106.     }
  1107.     /**
  1108.      * @return Collection|RegistrationStudentRegistration[]
  1109.      */
  1110.     public function getRegistrationStudentRegistrations(): Collection
  1111.     {
  1112.         return $this->registrationStudentRegistrations;
  1113.     }
  1114.     public function addRegistrationStudentRegistration(RegistrationStudentRegistration $registrationStudentRegistration): self
  1115.     {
  1116.         if (!$this->registrationStudentRegistrations->contains($registrationStudentRegistration)) {
  1117.             $this->registrationStudentRegistrations[] = $registrationStudentRegistration;
  1118.             $registrationStudentRegistration->setRegistrationStudentPreRegistration($this);
  1119.         }
  1120.         return $this;
  1121.     }
  1122.     public function removeRegistrationStudentRegistration(RegistrationStudentRegistration $registrationStudentRegistration): self
  1123.     {
  1124.         if ($this->registrationStudentRegistrations->removeElement($registrationStudentRegistration)) {
  1125.             // set the owning side to null (unless already changed)
  1126.             if ($registrationStudentRegistration->getRegistrationStudentPreRegistration() === $this) {
  1127.                 $registrationStudentRegistration->setRegistrationStudentPreRegistration(null);
  1128.             }
  1129.         }
  1130.         return $this;
  1131.     }
  1132.     public function getIsSubjectEntryTest(): ?bool
  1133.     {
  1134.         return $this->is_subject_entry_test;
  1135.     }
  1136.     public function setIsSubjectEntryTest(bool $is_subject_entry_test): self
  1137.     {
  1138.         $this->is_subject_entry_test $is_subject_entry_test;
  1139.         return $this;
  1140.     }
  1141.     public function getIsSubjectToxicologicalTest(): ?bool
  1142.     {
  1143.         return $this->is_subject_toxicological_test;
  1144.     }
  1145.     public function setIsSubjectToxicologicalTest(bool $is_subject_toxicological_test): self
  1146.     {
  1147.         $this->is_subject_toxicological_test $is_subject_toxicological_test;
  1148.         return $this;
  1149.     }
  1150.     public function getIsSubjectPsychologicalTest(): ?bool
  1151.     {
  1152.         return $this->is_subject_psychological_test;
  1153.     }
  1154.     public function setIsSubjectPsychologicalTest(bool $is_subject_psychological_test): self
  1155.     {
  1156.         $this->is_subject_psychological_test $is_subject_psychological_test;
  1157.         return $this;
  1158.     }
  1159.     public function getHoldStudentId(): ?int
  1160.     {
  1161.         return $this->hold_student_id;
  1162.     }
  1163.     public function setHoldStudentId(?int $hold_student_id): self
  1164.     {
  1165.         $this->hold_student_id $hold_student_id;
  1166.         return $this;
  1167.     }
  1168.     /**
  1169.      * @return Collection|PreRegistrationEntreTestReportCard[]
  1170.      */
  1171.     public function getPreRegistrationEntreTestReportCards(): Collection
  1172.     {
  1173.         return $this->preRegistrationEntreTestReportCards;
  1174.     }
  1175.     public function addPreRegistrationEntreTestReportCard(PreRegistrationEntreTestReportCard $preRegistrationEntreTestReportCard): self
  1176.     {
  1177.         if (!$this->preRegistrationEntreTestReportCards->contains($preRegistrationEntreTestReportCard)) {
  1178.             $this->preRegistrationEntreTestReportCards[] = $preRegistrationEntreTestReportCard;
  1179.             $preRegistrationEntreTestReportCard->setRegistrationStudentPreRegistration($this);
  1180.         }
  1181.         return $this;
  1182.     }
  1183.     public function removePreRegistrationEntreTestReportCard(PreRegistrationEntreTestReportCard $preRegistrationEntreTestReportCard): self
  1184.     {
  1185.         if ($this->preRegistrationEntreTestReportCards->removeElement($preRegistrationEntreTestReportCard)) {
  1186.             // set the owning side to null (unless already changed)
  1187.             if ($preRegistrationEntreTestReportCard->getRegistrationStudentPreRegistration() === $this) {
  1188.                 $preRegistrationEntreTestReportCard->setRegistrationStudentPreRegistration(null);
  1189.             }
  1190.         }
  1191.         return $this;
  1192.     }
  1193.     public function getAccompanyingPersonName2(): ?string
  1194.     {
  1195.         return $this->accompanying_person_name_2;
  1196.     }
  1197.     public function setAccompanyingPersonName2(?string $accompanying_person_name_2): self
  1198.     {
  1199.         $this->accompanying_person_name_2 $accompanying_person_name_2;
  1200.         return $this;
  1201.     }
  1202.     public function getAccompanyingPersonPhoneNumber2(): ?string
  1203.     {
  1204.         return $this->accompanying_person_phone_number_2;
  1205.     }
  1206.     public function setAccompanyingPersonPhoneNumber2(?string $accompanying_person_phone_number_2): self
  1207.     {
  1208.         $this->accompanying_person_phone_number_2 $accompanying_person_phone_number_2;
  1209.         return $this;
  1210.     }
  1211.     public function getAccompanyingPersonName3(): ?string
  1212.     {
  1213.         return $this->accompanying_person_name_3;
  1214.     }
  1215.     public function setAccompanyingPersonName3(?string $accompanying_person_name_3): self
  1216.     {
  1217.         $this->accompanying_person_name_3 $accompanying_person_name_3;
  1218.         return $this;
  1219.     }
  1220.     public function getAccompanyingPersonPhoneNumber3(): ?string
  1221.     {
  1222.         return $this->accompanying_person_phone_number_3;
  1223.     }
  1224.     public function setAccompanyingPersonPhoneNumber3(?string $accompanying_person_phone_number_3): self
  1225.     {
  1226.         $this->accompanying_person_phone_number_3 $accompanying_person_phone_number_3;
  1227.         return $this;
  1228.     }
  1229.     public function getFinalDecisionNote(): ?string
  1230.     {
  1231.         return $this->final_decision_note;
  1232.     }
  1233.     public function setFinalDecisionNote(?string $final_decision_note): self
  1234.     {
  1235.         $this->final_decision_note $final_decision_note;
  1236.         return $this;
  1237.     }
  1238.     public function getBirthCertificateNumber(): ?string
  1239.     {
  1240.         return $this->birth_certificate_number;
  1241.     }
  1242.     public function setBirthCertificateNumber(?string $birth_certificate_number): self
  1243.     {
  1244.         $this->birth_certificate_number $birth_certificate_number;
  1245.         return $this;
  1246.     }
  1247.     public function getLastPreviousClass(): ?string
  1248.     {
  1249.         return $this->last_previous_class;
  1250.     }
  1251.     public function setLastPreviousClass(?string $last_previous_class): self
  1252.     {
  1253.         $this->last_previous_class $last_previous_class;
  1254.         return $this;
  1255.     }
  1256.     public function getIsToxicologicalTestRefused(): ?bool
  1257.     {
  1258.         return $this->is_toxicological_test_refused;
  1259.     }
  1260.     public function setIsToxicologicalTestRefused(bool $is_toxicological_test_refused): self
  1261.     {
  1262.         $this->is_toxicological_test_refused $is_toxicological_test_refused;
  1263.         return $this;
  1264.     }
  1265.     public function getToxicologicalTestAppreciation(): ?string
  1266.     {
  1267.         return $this->toxicological_test_appreciation;
  1268.     }
  1269.     public function setToxicologicalTestAppreciation(?string $toxicological_test_appreciation): self
  1270.     {
  1271.         $this->toxicological_test_appreciation $toxicological_test_appreciation;
  1272.         return $this;
  1273.     }
  1274.     public function getArtOrMusique(): ?string
  1275.     {
  1276.         return $this->art_or_musique;
  1277.     }
  1278.     public function setArtOrMusique(?string $art_or_musique): self
  1279.     {
  1280.         $this->art_or_musique $art_or_musique;
  1281.         return $this;
  1282.     }
  1283.     public function getNumCmu(): ?string
  1284.     {
  1285.         return $this->num_cmu;
  1286.     }
  1287.     public function setNumCmu(?string $num_cmu): self
  1288.     {
  1289.         $this->num_cmu $num_cmu;
  1290.         return $this;
  1291.     }
  1292.     /**
  1293.      * @return Collection|ToxicologicalTestResult[]
  1294.      */
  1295.     public function getToxicologicalTestResults(): Collection
  1296.     {
  1297.         return $this->toxicologicalTestResults;
  1298.     }
  1299.     public function addToxicologicalTestResult(ToxicologicalTestResult $toxicologicalTestResult): self
  1300.     {
  1301.         if (!$this->toxicologicalTestResults->contains($toxicologicalTestResult)) {
  1302.             $this->toxicologicalTestResults[] = $toxicologicalTestResult;
  1303.             $toxicologicalTestResult->setRegistrationStudentPreRegistration($this);
  1304.         }
  1305.         return $this;
  1306.     }
  1307.     public function removeToxicologicalTestResult(ToxicologicalTestResult $toxicologicalTestResult): self
  1308.     {
  1309.         if ($this->toxicologicalTestResults->removeElement($toxicologicalTestResult)) {
  1310.             // set the owning side to null (unless already changed)
  1311.             if ($toxicologicalTestResult->getRegistrationStudentPreRegistration() === $this) {
  1312.                 $toxicologicalTestResult->setRegistrationStudentPreRegistration(null);
  1313.             }
  1314.         }
  1315.         return $this;
  1316.     }
  1317. }