src/Entity/Establishment.php line 23

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Serializable;
  4. use DateTimeImmutable;
  5. use App\Service\SalaryManage;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use App\Repository\EstablishmentRepository;
  8. use Doctrine\Common\Collections\Collection;
  9. use Symfony\Component\HttpFoundation\File\File;
  10. use Doctrine\Common\Collections\ArrayCollection;
  11. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  12. use Symfony\Component\Validator\Constraints as Assert;
  13. use Symfony\Component\HttpFoundation\File\UploadedFile;
  14. /**
  15.  * @ORM\Entity(repositoryClass=EstablishmentRepository::class)
  16.  * @Vich\Uploadable
  17. */
  18. class Establishment implements Serializable
  19. {
  20.     public const ESTABLISHMENT_TYPES = ['PRESCOLAIRE-PRIMAIRE' => 'PRESCOLAIRE-PRIMAIRE''SECONDAIRE GENERAL' => 'SECONDAIRE GENERAL''TECHNIQUE ET PROFESSIONNEL' => 'TECHNIQUE ET PROFESSIONNEL'];
  21.     public const ESTABLISHMENT_PRESCOLAIRE_PRIMAIRE_TYPES 'PRESCOLAIRE-PRIMAIRE';
  22.     public const ESTABLISHMENT_SECONDAIRE_GENERAL_TYPES 'SECONDAIRE GENERAL';
  23.     public const ESTABLISHMENT_TECHNIQUE_PROFESSIONNEL_TYPES 'TECHNIQUE ET PROFESSIONNEL';
  24.     /**
  25.      * @ORM\Id
  26.      * @ORM\GeneratedValue
  27.      * @ORM\Column(type="integer")
  28.      */
  29.     private $id;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=EstablishmentGroup::class, inversedBy="establishments")
  32.      * @ORM\JoinColumn(nullable=false)
  33.      */
  34.     private $establishmentGroup;
  35.     /**
  36.      * @ORM\Column(type="string", length=60)
  37.      */
  38.     private $code;
  39.     /**
  40.      * @ORM\Column(type="string", length=128)
  41.      */
  42.     private $name;
  43.     /**
  44.      * @ORM\Column(type="string", length=128, nullable=true)
  45.      */
  46.     private $short_name;
  47.     /**
  48.      * @ORM\Column(type="string", length=128)
  49.      */
  50.     private $type;
  51.     /**
  52.      * @ORM\Column(type="string", length=128, nullable=true)
  53.      */
  54.     private $phone_number;
  55.     /**
  56.      * @ORM\Column(type="string", length=128, nullable=true)
  57.     */
  58.     private $mobile_number;
  59.     /**
  60.      * @ORM\Column(type="string", length=128, nullable=true)
  61.      */
  62.     private $email;
  63.     /**
  64.      * @ORM\Column(type="string", length=128, nullable=true)
  65.      */
  66.     private $website;
  67.     /**
  68.      * @ORM\Column(type="string", length=128, nullable=true)
  69.      */
  70.     private $address;
  71.     /**
  72.      * @ORM\Column(type="string", length=128, nullable=true)
  73.      */
  74.     private $city;
  75.     /**
  76.      * @ORM\Column(type="string", length=128, nullable=true)
  77.      */
  78.     private $location;
  79.     /**
  80.      * @ORM\Column(type="text", nullable=true)
  81.      */
  82.     private $under_supervision;
  83.     /**
  84.      * @ORM\Column(type="string", length=128, nullable=true)
  85.      */
  86.     private $regional_directorate;
  87.     /**
  88.      * @ORM\Column(type="text", nullable=true)
  89.      */
  90.     private $main_activity;
  91.     /**
  92.      * @ORM\Column(type="datetime_immutable")
  93.      */
  94.     private $created_at;
  95.     /**
  96.      * @ORM\Column(type="datetime_immutable")
  97.      */
  98.     private $updated_at;
  99.     /**
  100.      * @ORM\Column(type="integer")
  101.      */
  102.     private $created_by;
  103.     /**
  104.      * @ORM\Column(type="integer")
  105.      */
  106.     private $updated_by;
  107.     /**
  108.      * @ORM\OneToMany(targetEntity=User::class, mappedBy="establishment")
  109.      */
  110.     private $users;
  111.     /**
  112.      * @ORM\OneToMany(targetEntity=RhJob::class, mappedBy="establishment")
  113.      */
  114.     private $rhJobs;
  115.     /**
  116.      * @ORM\OneToMany(targetEntity=RhDepartment::class, mappedBy="establishment")
  117.      */
  118.     private $rhDepartments;
  119.     /**
  120.      * @ORM\OneToMany(targetEntity=RhSalary::class, mappedBy="establishment")
  121.      */
  122.     private $rhSalaries;
  123.     /**
  124.      * @ORM\OneToMany(targetEntity=RhPaySlip::class, mappedBy="establishment")
  125.      */
  126.     private $rhPaySlips;
  127.     /**
  128.      * @ORM\OneToMany(targetEntity=RhRetainedItem::class, mappedBy="establishment")
  129.      */
  130.     private $rhRetainedItems;
  131.     /**
  132.      * @ORM\OneToMany(targetEntity=RhTaxableItem::class, mappedBy="establishment")
  133.      */
  134.     private $rhTaxableItems;
  135.     /**
  136.      * @ORM\OneToMany(targetEntity=RhNonTaxableItem::class, mappedBy="establishment")
  137.      */
  138.     private $rhNonTaxableItems;
  139.     /**
  140.      * @ORM\OneToMany(targetEntity=RhSalaryPaySlip::class, mappedBy="establishment")
  141.      */
  142.     private $rhSalaryPaySlips;
  143.     /**
  144.      * @ORM\OneToMany(targetEntity=RhPaySlipRetainedItem::class, mappedBy="establishment")
  145.      */
  146.     private $rhPaySlipRetainedItems;
  147.     /**
  148.      * @ORM\OneToMany(targetEntity=RhPaySlipTaxableItem::class, mappedBy="establishment")
  149.      */
  150.     private $rhPaySlipTaxableItems;
  151.     /**
  152.      * @ORM\OneToMany(targetEntity=RhPaySlipNonTaxableItem::class, mappedBy="establishment")
  153.      */
  154.     private $rhPaySlipNonTaxableItems;
  155.     /**
  156.      * @ORM\OneToMany(targetEntity=SettingCycle::class, mappedBy="establishment")
  157.      */
  158.     private $settingCycles;
  159.     /**
  160.      * @ORM\OneToMany(targetEntity=SettingLevel::class, mappedBy="establishment")
  161.      */
  162.     private $settingLevels;
  163.     /**
  164.      * @ORM\OneToMany(targetEntity=SettingFaculty::class, mappedBy="establishment")
  165.      */
  166.     private $settingFaculties;
  167.     /**
  168.      * @ORM\OneToMany(targetEntity=SettingRound::class, mappedBy="establishment")
  169.      */
  170.     private $settingRounds;
  171.     /**
  172.      * @ORM\OneToMany(targetEntity=SettingClassroom::class, mappedBy="establishment")
  173.      */
  174.     private $settingClassrooms;
  175.     /**
  176.      * @ORM\OneToMany(targetEntity=RegistrationStudent::class, mappedBy="establishment")
  177.      */
  178.     private $registrationStudents;
  179.     /**
  180.      * @ORM\OneToMany(targetEntity=RegistrationStudentRegistration::class, mappedBy="establishment")
  181.      */
  182.     private $registrationStudentRegistrations;
  183.     /**
  184.      * @ORM\OneToMany(targetEntity=SettingFee::class, mappedBy="establishment")
  185.      */
  186.     private $settingFees;
  187.     /**
  188.      * @ORM\OneToMany(targetEntity=SettingFeeProvider::class, mappedBy="establishment")
  189.      */
  190.     private $settingFeeProviders;
  191.     /**
  192.      * @ORM\OneToMany(targetEntity=SettingFeeShedul::class, mappedBy="establishment")
  193.      */
  194.     private $settingFeeSheduls;
  195.     /**
  196.      * @ORM\OneToMany(targetEntity=AccountingStudentRegistrationFee::class, mappedBy="establishment")
  197.      */
  198.     private $accountingStudentRegistrationFees;
  199.     /**
  200.      * @ORM\OneToMany(targetEntity=AccountingStudentRegistrationFeeShedul::class, mappedBy="establishment")
  201.      */
  202.     private $accountingStudentRegistrationFeeSheduls;
  203.     /**
  204.      * @ORM\OneToMany(targetEntity=TreasuryCheckout::class, mappedBy="establishment")
  205.      */
  206.     private $treasuryCheckouts;
  207.     /**
  208.      * @ORM\OneToMany(targetEntity=TreasuryCashRegister::class, mappedBy="establishment")
  209.      */
  210.     private $treasuryCashRegisters;
  211.     /**
  212.      * @ORM\OneToMany(targetEntity=TreasuryCashMovement::class, mappedBy="establishment")
  213.      */
  214.     private $treasuryCashMovements;
  215.     /**
  216.      * @ORM\OneToMany(targetEntity=AccountingStudentRegistrationFeeShedulPayment::class, mappedBy="establishment")
  217.      */
  218.     private $accountingStudentRegistrationFeeShedulPayments;
  219.     /**
  220.      * @ORM\OneToMany(targetEntity=AccountingExpense::class, mappedBy="establishment")
  221.      */
  222.     private $accountingExpenses;
  223.     /**
  224.      * @ORM\OneToMany(targetEntity=SchoolYearPeriode::class, mappedBy="establishment")
  225.      */
  226.     private $schoolYearPeriodes;
  227.     /**
  228.      * @ORM\OneToMany(targetEntity=SchoolMatterType::class, mappedBy="establishment")
  229.      */
  230.     private $schoolMatterTypes;
  231.     /**
  232.      * @ORM\OneToMany(targetEntity=SchoolMatter::class, mappedBy="establishment")
  233.      */
  234.     private $schoolMatters;
  235.     /**
  236.      * @ORM\OneToMany(targetEntity=SchoolNoteAppreciation::class, mappedBy="establishment")
  237.      */
  238.     private $schoolNoteAppreciations;
  239.     /**
  240.      * @ORM\OneToMany(targetEntity=SchoolSubMatter::class, mappedBy="establishment")
  241.      */
  242.     private $schoolSubMatters;
  243.     /**
  244.      * @ORM\OneToMany(targetEntity=SchoolReportCard::class, mappedBy="establishment")
  245.      */
  246.     private $schoolReportCards;
  247.     /**
  248.      * @ORM\OneToMany(targetEntity=SchoolAverageReportCard::class, mappedBy="establishment")
  249.      */
  250.     private $schoolAverageReportCards;
  251.     /**
  252.      * @ORM\OneToMany(targetEntity=SchoolAssessmentByClass::class, mappedBy="establishment")
  253.      */
  254.     private $schoolAssessmentByClasses;
  255.     /**
  256.      * @ORM\OneToMany(targetEntity=SchoolAssessmentByLevel::class, mappedBy="establishment")
  257.      */
  258.     private $schoolAssessmentByLevels;
  259.     /**
  260.      * @ORM\OneToMany(targetEntity=SchoolAssessmentByClassByMatter::class, mappedBy="establishment")
  261.      */
  262.     private $schoolAssessmentByClassByMatters;
  263.     /**
  264.      * @ORM\OneToMany(targetEntity=SchoolAssessmentByLevelByMatter::class, mappedBy="establishment")
  265.      */
  266.     private $schoolAssessmentByLevelByMatters;
  267.     /**
  268.      * @ORM\OneToMany(targetEntity=ReportCard::class, mappedBy="establishment")
  269.      */
  270.     private $reportCards;
  271.     /**
  272.      * @ORM\OneToMany(targetEntity=AccountingStudentRegistrationPayment::class, mappedBy="establishment")
  273.      */
  274.     private $accountingStudentRegistrationPayments;
  275.     /**
  276.      * @ORM\Column(type="string", length=255, nullable=true)
  277.      */
  278.     private $image;
  279.     /**
  280.      * NOTE: This is not a mapped field of entity metadata, just a simple property.
  281.      * 
  282.      * @Vich\UploadableField(mapping="establishment", fileNameProperty="image")
  283.      * 
  284.      * @var File|null
  285.      * @Assert\File(
  286.      * maxSize = "25M",
  287.      * mimeTypes = {"image/png", "image/jpg", "image/jpeg"},
  288.      * mimeTypesMessage = "Veuillez télécharger une image valide (png, jpg, jpeg)",
  289.      * maxSizeMessage = "Le fichier est trop volumineux ({{size}} {{suffix}}). La taille maximale autorisée est {{limit}} {{suffix}}"
  290.      * )
  291.      */
  292.     private $imageFile;
  293.     /**
  294.      * @ORM\OneToMany(targetEntity=RegistrationClassChange::class, mappedBy="establishment")
  295.      */
  296.     private $registrationClassChanges;
  297.     /**
  298.      * @ORM\OneToMany(targetEntity=RegistrationStudentDowngrade::class, mappedBy="establishment")
  299.      */
  300.     private $registrationStudentDowngrades;
  301.     /**
  302.      * @ORM\OneToMany(targetEntity=RegistrationStudentDowngradeLine::class, mappedBy="establishment")
  303.      */
  304.     private $registrationStudentDowngradeLines;
  305.     /**
  306.      * @ORM\OneToMany(targetEntity=RegistrationStudentAbandonment::class, mappedBy="establishment")
  307.      */
  308.     private $registrationStudentAbandonments;
  309.     /**
  310.      * @ORM\OneToMany(targetEntity=RegistrationStudentAbandonmentLine::class, mappedBy="establishment")
  311.      */
  312.     private $registrationStudentAbandonmentLines;
  313.     /**
  314.      * @ORM\OneToMany(targetEntity=TreasuryPayment::class, mappedBy="establishment")
  315.      */
  316.     private $treasuryPayments;
  317.     /**
  318.      * @ORM\OneToMany(targetEntity=RegistrationStudentPreRegistration::class, mappedBy="establishment")
  319.      */
  320.     private $registrationStudentPreRegistrations;
  321.     /**
  322.      * @ORM\OneToMany(targetEntity=EntreTestReportCard::class, mappedBy="establishment")
  323.      */
  324.     private $entreTestReportCards;
  325.     /**
  326.      * @ORM\OneToMany(targetEntity=PreRegistrationEntreTestReportCard::class, mappedBy="establishment")
  327.      */
  328.     private $preRegistrationEntreTestReportCards;
  329.     /**
  330.      * @ORM\OneToMany(targetEntity=MatterAveragePreRegistrationEntryTest::class, mappedBy="establishment")
  331.      */
  332.     private $matterAveragePreRegistrationEntryTests;
  333.     /**
  334.      * @ORM\OneToMany(targetEntity=CommunicationMessage::class, mappedBy="establishment")
  335.      */
  336.     private $communicationMessages;
  337.     /**
  338.      * @ORM\OneToMany(targetEntity=TransportVehicle::class, mappedBy="establishment")
  339.      */
  340.     private $transportVehicles;
  341.     /**
  342.      * @ORM\OneToMany(targetEntity=TransportVehicleModel::class, mappedBy="establishment")
  343.      */
  344.     private $transportVehicleModels;
  345.     /**
  346.      * @ORM\OneToMany(targetEntity=TransportVehicleAdministrativeDocument::class, mappedBy="establishment")
  347.      */
  348.     private $transportVehicleAdministrativeDocuments;
  349.     /**
  350.      * @ORM\OneToMany(targetEntity=TransportVehicleMechanicalPiece::class, mappedBy="establishment")
  351.      */
  352.     private $transportVehicleMechanicalPieces;
  353.     /**
  354.      * @ORM\OneToMany(targetEntity=TransportVehicleMaintenance::class, mappedBy="establishment")
  355.      */
  356.     private $transportVehicleMaintenances;
  357.     /**
  358.      * @ORM\OneToMany(targetEntity=TransportVehicleFuelTracking::class, mappedBy="establishment")
  359.      */
  360.     private $transportVehicleFuelTrackings;
  361.     /**
  362.      * @ORM\OneToMany(targetEntity=TransportZone::class, mappedBy="establishment")
  363.      */
  364.     private $transportZones;
  365.     /**
  366.      * @ORM\OneToMany(targetEntity=TransportZoneCheckPoint::class, mappedBy="establishment")
  367.      */
  368.     private $transportZoneCheckPoints;
  369.     /**
  370.      * @ORM\OneToMany(targetEntity=RegistrationTransportCheckpoint::class, mappedBy="establishment")
  371.      */
  372.     private $registrationTransportCheckpoints;
  373.     /**
  374.      * @ORM\OneToMany(targetEntity=SettingDocumentToProvide::class, mappedBy="establishment")
  375.      */
  376.     private $settingDocumentToProvides;
  377.     /**
  378.      * @ORM\OneToMany(targetEntity=SettingMedicalHistory::class, mappedBy="establishment")
  379.      */
  380.     private $settingMedicalHistories;
  381.     /**
  382.      * @ORM\OneToMany(targetEntity=CanteenUtensil::class, mappedBy="establishment")
  383.      */
  384.     private $canteenUtensils;
  385.     /**
  386.      * @ORM\OneToMany(targetEntity=CanteenStockMovement::class, mappedBy="establishment")
  387.      */
  388.     private $canteenStockMovements;
  389.     /**
  390.      * @ORM\OneToMany(targetEntity=CanteenDish::class, mappedBy="establishment")
  391.      */
  392.     private $canteenDishes;
  393.     /**
  394.      * @ORM\OneToMany(targetEntity=CanteenTime::class, mappedBy="establishment")
  395.      */
  396.     private $canteenTimes;
  397.     /**
  398.      * @ORM\OneToMany(targetEntity=CanteenMenu::class, mappedBy="establishment")
  399.      */
  400.     private $canteenMenus;
  401.     /**
  402.      * @ORM\OneToMany(targetEntity=CanteenMenuItem::class, mappedBy="establishment")
  403.      */
  404.     private $canteenMenuItems;
  405.     /**
  406.      * @ORM\OneToMany(targetEntity=RegistrationDiet::class, mappedBy="establishment")
  407.      */
  408.     private $registrationDiets;
  409.     /**
  410.      * @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelay::class, mappedBy="establishment")
  411.      */
  412.     private $schoolAbsenceAndDelays;
  413.     /**
  414.      * @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelayNotification::class, mappedBy="establishment")
  415.      */
  416.     private $schoolAbsenceAndDelayNotifications;
  417.     /**
  418.      * @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelayNotificationLine::class, mappedBy="establishment")
  419.      */
  420.     private $schoolAbsenceAndDelayNotificationLines;
  421.     /**
  422.      * @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelaySetting::class, mappedBy="establishment")
  423.      */
  424.     private $schoolAbsenceAndDelaySettings;
  425.     /**
  426.      * @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelayReportCardNotification::class, mappedBy="establishment")
  427.      */
  428.     private $schoolAbsenceAndDelayReportCardNotifications;
  429.     /**
  430.      * @ORM\OneToMany(targetEntity=SchoolAbsenceAndDelayReportCardNotificationLine::class, mappedBy="establishment")
  431.      */
  432.     private $schoolAbsenceAndDelayReportCardNotificationLines;
  433.     /**
  434.      * @ORM\OneToMany(targetEntity=SettingLearningDifficulty::class, mappedBy="establishment")
  435.      */
  436.     private $settingLearningDifficulties;
  437.     /**
  438.      * @ORM\ManyToMany(targetEntity=User::class, mappedBy="establishments")
  439.      */
  440.     private $accessUsers;
  441.     /**
  442.      * @ORM\OneToMany(targetEntity=RhStatut::class, mappedBy="establishment")
  443.      */
  444.     private $rhStatuts;
  445.     /**
  446.      * @ORM\OneToMany(targetEntity=CommunicationPredefinedMessage::class, mappedBy="establishment")
  447.      */
  448.     private $communicationPredefinedMessages;
  449.     /**
  450.      * @ORM\OneToMany(targetEntity=SchoolTeacher::class, mappedBy="establishment")
  451.      */
  452.     private $schoolTeachers;
  453.     /**
  454.      * @ORM\OneToMany(targetEntity=StockProduct::class, mappedBy="establishment")
  455.      */
  456.     private $stockProducts;
  457.     /**
  458.      * @ORM\OneToMany(targetEntity=StockKitCategory::class, mappedBy="establishment")
  459.      */
  460.     private $stockKitCategories;
  461.     /**
  462.      * @ORM\OneToMany(targetEntity=StockKitProduct::class, mappedBy="establishment")
  463.      */
  464.     private $stockKitProducts;
  465.     /**
  466.      * @ORM\OneToMany(targetEntity=StockProductEntry::class, mappedBy="establishment")
  467.      */
  468.     private $stockProductEntries;
  469.     /**
  470.      * @ORM\OneToMany(targetEntity=StockProductEntryLine::class, mappedBy="establishment")
  471.      */
  472.     private $stockProductEntryLines;
  473.     /**
  474.      * @ORM\OneToMany(targetEntity=StockProviderKitEntry::class, mappedBy="establishment")
  475.      */
  476.     private $stockProviderKitEntries;
  477.     /**
  478.      * @ORM\OneToMany(targetEntity=StockProviderKitEntryLine::class, mappedBy="establishment")
  479.      */
  480.     private $stockProviderKitEntryLines;
  481.     /**
  482.      * @ORM\OneToMany(targetEntity=StockStudentKitEntry::class, mappedBy="establishment")
  483.      */
  484.     private $stockStudentKitEntries;
  485.     /**
  486.      * @ORM\OneToMany(targetEntity=StockStudentKitEntryLine::class, mappedBy="establishment")
  487.      */
  488.     private $stockStudentKitEntryLines;
  489.     /**
  490.      * @ORM\OneToMany(targetEntity=StockKitOut::class, mappedBy="establishment")
  491.      */
  492.     private $stockKitOuts;
  493.     /**
  494.      * @ORM\OneToMany(targetEntity=StockKitOutLine::class, mappedBy="establishment")
  495.      */
  496.     private $stockKitOutLines;
  497.     /**
  498.      * @ORM\OneToMany(targetEntity=StockProductOut::class, mappedBy="establishment")
  499.      */
  500.     private $stockProductOuts;
  501.     /**
  502.      * @ORM\Column(type="string", length=128)
  503.      */
  504.     private $sms_sender;
  505.     /**
  506.      * @ORM\Column(type="string", length=128)
  507.      */
  508.     private $sms_login;
  509.     /**
  510.      * @ORM\Column(type="string", length=128)
  511.      */
  512.     private $sms_password;
  513.     /**
  514.      * @ORM\Column(type="string", length=128)
  515.      */
  516.     private $oci_sms_sender;
  517.     /**
  518.      * @ORM\Column(type="string", length=128, nullable=true)
  519.      */
  520.     private $oci_sms_phone;
  521.     /**
  522.      * @ORM\Column(type="string", length=128)
  523.      */
  524.     private $sms_gateway;
  525.     /**
  526.      * @ORM\OneToMany(targetEntity=XlsImportation::class, mappedBy="establishment")
  527.      */
  528.     private $xlsImportations;
  529.     /**
  530.      * @ORM\OneToMany(targetEntity=AccountingCredit::class, mappedBy="establishment")
  531.      */
  532.     private $accountingCredits;
  533.     /**
  534.      * @ORM\OneToMany(targetEntity=AccountingCreditLine::class, mappedBy="establishment")
  535.      */
  536.     private $accountingCreditLines;
  537.     /**
  538.      * @ORM\OneToMany(targetEntity=SchoolAverage::class, mappedBy="establishment")
  539.      */
  540.     private $schoolAverages;
  541.     /**
  542.      * @ORM\OneToMany(targetEntity=SchoolStudentAverage::class, mappedBy="establishment")
  543.      */
  544.     private $schoolStudentAverages;
  545.     /**
  546.      * @ORM\OneToMany(targetEntity=SchoolCertificate::class, mappedBy="establishment")
  547.      */
  548.     private $schoolCertificates;
  549.     /**
  550.      * @ORM\OneToMany(targetEntity=SchoolCertificateLine::class, mappedBy="establishment")
  551.      */
  552.     private $schoolCertificateLines;
  553.     /**
  554.      * @ORM\OneToMany(targetEntity=NurseryTimeSheet::class, mappedBy="establishment")
  555.      */
  556.     private $nurseryTimeSheets;
  557.     /**
  558.      * @ORM\Column(type="string", length=255, nullable=true)
  559.      */
  560.     private $stamp;
  561.     /**
  562.      * NOTE: This is not a mapped field of entity metadata, just a simple property.
  563.      * 
  564.      * @Vich\UploadableField(mapping="establishment", fileNameProperty="stamp")
  565.      * 
  566.      * @var File|null
  567.      * @Assert\File(
  568.      * maxSize = "25M",
  569.      * mimeTypes = {"image/png", "image/jpg", "image/jpeg"},
  570.      * mimeTypesMessage = "Veuillez télécharger une image valide (png, jpg, jpeg)",
  571.      * maxSizeMessage = "Le fichier est trop volumineux ({{size}} {{suffix}}). La taille maximale autorisée est {{limit}} {{suffix}}"
  572.      * )
  573.      */
  574.     private $stampFile;
  575.     /**
  576.      * @ORM\Column(type="string", length=255, nullable=true)
  577.      */
  578.     private $badge_color;
  579.     /**
  580.      * @ORM\OneToMany(targetEntity=SettingRoom::class, mappedBy="establishment")
  581.      */
  582.     private $settingRooms;
  583.     /**
  584.      * @ORM\OneToMany(targetEntity=SettingTimeTable::class, mappedBy="establishment")
  585.      */
  586.     private $settingTimeTables;
  587.     /**
  588.      * @ORM\OneToMany(targetEntity=SchoolWorkingTime::class, mappedBy="establishment")
  589.      */
  590.     private $schoolWorkingTimes;
  591.     /**
  592.      * @ORM\OneToMany(targetEntity=SchoolWorkingTimeHourLesson::class, mappedBy="establishment")
  593.      */
  594.     private $schoolWorkingTimeHourLessons;
  595.     /**
  596.      * @ORM\OneToMany(targetEntity=MobileParentAppAccount::class, mappedBy="establishment")
  597.      */
  598.     private $mobileParentAppAccounts;
  599.     /**
  600.      * @ORM\OneToMany(targetEntity=FoundingNotification::class, mappedBy="establishment")
  601.      */
  602.     private $foundingNotifications;
  603.     /**
  604.      * @ORM\Column(type="string", length=128, nullable=true)
  605.     */
  606.     private $sms_bank_payment;
  607.     /**
  608.      * @ORM\Column(type="string", length=128, nullable=true)
  609.     */
  610.     private $sms_recovery;
  611.     /**
  612.      * @ORM\OneToMany(targetEntity=EquivalentMatter::class, mappedBy="establishment")
  613.      */
  614.     private $equivalentMatters;
  615.     /**
  616.      * @ORM\OneToMany(targetEntity=SchoolTeacherCallSheet::class, mappedBy="establishment")
  617.      */
  618.     private $schoolTeacherCallSheets;
  619.     /**
  620.      * @ORM\OneToMany(targetEntity=SchoolTeacherCallSheetLine::class, mappedBy="establishment")
  621.      */
  622.     private $schoolTeacherCallSheetLines;
  623.     /**
  624.      * @ORM\OneToMany(targetEntity=SchoolTeacherMatterClassroom::class, mappedBy="establishment")
  625.      */
  626.     private $schoolTeacherMatterClassrooms;
  627.     /**
  628.      * @ORM\OneToMany(targetEntity=RhSalarySalaryAccessory::class, mappedBy="establishment")
  629.      */
  630.     private $rhSalarySalaryAccessories;
  631.     /**
  632.      * @ORM\OneToMany(targetEntity=RhSalaryPaySlipPayment::class, mappedBy="establishment")
  633.      */
  634.     private $rhSalaryPaySlipPayments;
  635.     /**
  636.      * @ORM\OneToMany(targetEntity=RhSalaryContract::class, mappedBy="establishment")
  637.      */
  638.     private $rhSalaryContracts;
  639.     /**
  640.      * @ORM\OneToMany(targetEntity=RhSalaryContractItem::class, mappedBy="establishment")
  641.      */
  642.     private $rhSalaryContractItems;
  643.     /**
  644.      * @ORM\OneToMany(targetEntity=SchoolTeacherTimeSheet::class, mappedBy="establishment")
  645.      */
  646.     private $schoolTeacherTimeSheets;
  647.     /**
  648.      * @ORM\OneToMany(targetEntity=AccountingExpenseCategory::class, mappedBy="establishment")
  649.      */
  650.     private $accountingExpenseCategories;
  651.     /**
  652.      * @ORM\OneToMany(targetEntity=SchoolAssessment::class, mappedBy="establishment")
  653.      */
  654.     private $schoolAssessments;
  655.     /**
  656.      * @ORM\OneToMany(targetEntity=RhSalaryCredit::class, mappedBy="establishment")
  657.      */
  658.     private $rhSalaryCredits;
  659.     /**
  660.      * @ORM\OneToMany(targetEntity=RhSalaryCreditShedul::class, mappedBy="establishment")
  661.      */
  662.     private $rhSalaryCreditSheduls;
  663.     /**
  664.      * @ORM\ManyToOne(targetEntity=Establishment::class, inversedBy="childEstablishments")
  665.      */
  666.     private $parent;
  667.     /**
  668.      * @ORM\OneToMany(targetEntity=Establishment::class, mappedBy="parent")
  669.      */
  670.     private $childEstablishments;
  671.     /**
  672.      * @ORM\OneToMany(targetEntity=SettingFeeProviderDistribution::class, mappedBy="establishment")
  673.      */
  674.     private $settingFeeProviderDistributions;
  675.     /**
  676.      * @ORM\OneToMany(targetEntity=AccountingChequeTracking::class, mappedBy="establishment")
  677.      */
  678.     private $accountingChequeTrackings;
  679.     /**
  680.      * @ORM\OneToMany(targetEntity=AccountingChequeTrackingLine::class, mappedBy="establishment")
  681.      */
  682.     private $accountingChequeTrackingLines;
  683.     /**
  684.      * @ORM\Column(type="boolean")
  685.      */
  686.     private $is_send_absence_sms;
  687.     /**
  688.      * @ORM\Column(type="boolean")
  689.      */
  690.     private $is_face_attendance_enabled;
  691.     /**
  692.      * @ORM\Column(type="string", length=128, nullable=true)
  693.      */
  694.     private $wave_api_location;
  695.     /**
  696.      * @ORM\Column(type="string", length=60, nullable=true)
  697.      */
  698.     private $wave_api_store_merchant_id;
  699.     /**
  700.      * @ORM\Column(type="string", length=60, nullable=true)
  701.      */
  702.     private $wave_api_reinbursement_code;
  703.     /**
  704.      * @ORM\Column(type="string", length=20, nullable=true)
  705.      */
  706.     private $wave_api_setup_number;
  707.     /**
  708.      * @ORM\Column(type="string", length=10, nullable=true)
  709.      */
  710.     private $wave_api_code_secret;
  711.     /**
  712.      * @ORM\OneToMany(targetEntity=SalaryBandScale::class, mappedBy="establishment")
  713.      */
  714.     private $salaryBandScales;
  715.     /**
  716.      * @ORM\OneToMany(targetEntity=TaxReductionShedule::class, mappedBy="establishment")
  717.      */
  718.     private $taxReductionShedules;
  719.     /**
  720.      * @ORM\OneToMany(targetEntity=LogOperation::class, mappedBy="establishment")
  721.      */
  722.     private $logOperations;
  723.     /**
  724.      * @ORM\OneToMany(targetEntity=SchoolReportCardAbsence::class, mappedBy="establishment")
  725.      */
  726.     private $schoolReportCardAbsences;
  727.     /**
  728.      * @ORM\OneToMany(targetEntity=WavePayment::class, mappedBy="establishment")
  729.      */
  730.     private $wavePayments;
  731.     /**
  732.      * @ORM\OneToMany(targetEntity=ToxicologicalTestResult::class, mappedBy="establishment")
  733.      */
  734.     private $toxicologicalTestResults;
  735.     /**
  736.      * @ORM\OneToMany(targetEntity=ToxicologicalTestResultLine::class, mappedBy="establishment")
  737.      */
  738.     private $toxicologicalTestResultLines;
  739.     /**
  740.      * @ORM\OneToMany(targetEntity=ToxicologicalTestLaboratory::class, mappedBy="establishment")
  741.      */
  742.     private $toxicologicalTestLaboratories;
  743.     /**
  744.      * @ORM\OneToMany(targetEntity=SchoolTeacherAbsence::class, mappedBy="establishment")
  745.      */
  746.     private $schoolTeacherAbsences;
  747.     /**
  748.      * @ORM\OneToMany(targetEntity=GescotiContribution::class, mappedBy="establishment")
  749.      */
  750.     private $gescotiContributions;
  751.     /**
  752.      * @ORM\Column(type="float", nullable=true)
  753.      * Montant au dessus duquel un Ã©lève est mis dehors par les enseignant lors de l'appel
  754.      */
  755.     private $recovery_put_out_amount;
  756.     /**
  757.      * @ORM\Column(type="date_immutable", nullable=true)
  758.      * Date limite de modification des echéance
  759.      */
  760.     private $fee_shedul_end_date;
  761.     /**
  762.      * @ORM\OneToMany(targetEntity=RegistrationStudentContact::class, mappedBy="establishment")
  763.      */
  764.     private $registrationStudentContacts;
  765.     /**
  766.      * @ORM\OneToMany(targetEntity=TransportCallSheet::class, mappedBy="establishment")
  767.      */
  768.     private $transportCallSheets;
  769.     /**
  770.      * @ORM\OneToMany(targetEntity=TransportCallSheetLine::class, mappedBy="establishment")
  771.      */
  772.     private $transportCallSheetLines;
  773.     /**
  774.      * @ORM\OneToMany(targetEntity=CommunicationMessageQueue::class, mappedBy="establishment")
  775.      */
  776.     private $communicationMessageQueues;
  777.     /**
  778.      * @ORM\OneToMany(targetEntity=StockWarehouse::class, mappedBy="establishment")
  779.      */
  780.     private $stockWarehouses;
  781.     /**
  782.      * @ORM\OneToMany(targetEntity=StockMovement::class, mappedBy="establishment")
  783.      */
  784.     private $stockMovements;
  785.     /**
  786.      * @ORM\OneToMany(targetEntity=StockDeliveryNote::class, mappedBy="establishment")
  787.      */
  788.     private $stockDeliveryNotes;
  789.     /**
  790.      * @ORM\OneToMany(targetEntity=StockDeliveryNoteLine::class, mappedBy="establishment")
  791.      */
  792.     private $stockDeliveryNoteLines;
  793.     /**
  794.      * @ORM\OneToMany(targetEntity=StockReceptionVoucher::class, mappedBy="establishment")
  795.      */
  796.     private $stockReceptionVouchers;
  797.     /**
  798.      * @ORM\OneToMany(targetEntity=StockReceptionVoucherLine::class, mappedBy="establishment")
  799.      */
  800.     private $stockReceptionVoucherLines;
  801.     /**
  802.      * @ORM\OneToMany(targetEntity=StockExitSlip::class, mappedBy="establishment")
  803.      */
  804.     private $stockExitSlips;
  805.     /**
  806.      * @ORM\OneToMany(targetEntity=Stockinventory::class, mappedBy="establishment")
  807.      */
  808.     private $stockinventories;
  809.     /**
  810.      * @ORM\OneToMany(targetEntity=StockinventoryLine::class, mappedBy="establishment")
  811.      */
  812.     private $stockinventoryLines;
  813.     /**
  814.      * @ORM\OneToMany(targetEntity=Stocktransfer::class, mappedBy="establishment")
  815.      */
  816.     private $stocktransfers;
  817.     /**
  818.      * @ORM\OneToMany(targetEntity=StocktransferLine::class, mappedBy="establishment")
  819.      */
  820.     private $stocktransferLines;
  821.     /**
  822.      * @ORM\OneToMany(targetEntity=DocManager::class, mappedBy="establishment")
  823.      */
  824.     private $docManagers;
  825.     /**
  826.      * @ORM\OneToMany(targetEntity=DocManagerArticle::class, mappedBy="establishment")
  827.      */
  828.     private $docManagerArticles;
  829.     /**
  830.      * @ORM\OneToMany(targetEntity=TransportCallSheetCheckpoint::class, mappedBy="establishment")
  831.      */
  832.     private $transportCallSheetCheckpoints;
  833.     /**
  834.      * @ORM\OneToMany(targetEntity=TransportCallSheetCheckpointLine::class, mappedBy="establishment")
  835.      */
  836.     private $transportCallSheetCheckpointLines;
  837.     /**
  838.      * @ORM\OneToMany(targetEntity=TransportCallJourney::class, mappedBy="establishment")
  839.      */
  840.     private $transportCallJourneys;
  841.     /**
  842.      * @ORM\OneToMany(targetEntity=PayrollSync::class, mappedBy="establishment")
  843.      */
  844.     private $payrollSyncs;
  845.     /**
  846.      * @ORM\OneToMany(targetEntity=PayrollRecord::class, mappedBy="establishment")
  847.      */
  848.     private $payrollRecords;
  849.     public function __construct()
  850.     {
  851.         $this->is_send_absence_sms false;
  852.         $this->is_face_attendance_enabled false;
  853.         $this->users = new ArrayCollection();
  854.         $this->rhJobs = new ArrayCollection();
  855.         $this->rhDepartments = new ArrayCollection();
  856.         $this->rhSalaries = new ArrayCollection();
  857.         $this->rhPaySlips = new ArrayCollection();
  858.         $this->rhRetainedItems = new ArrayCollection();
  859.         $this->rhTaxableItems = new ArrayCollection();
  860.         $this->rhNonTaxableItems = new ArrayCollection();
  861.         $this->rhSalaryPaySlips = new ArrayCollection();
  862.         $this->rhPaySlipRetainedItems = new ArrayCollection();
  863.         $this->rhPaySlipTaxableItems = new ArrayCollection();
  864.         $this->rhPaySlipNonTaxableItems = new ArrayCollection();
  865.         $this->settingCycles = new ArrayCollection();
  866.         $this->settingLevels = new ArrayCollection();
  867.         $this->settingFaculties = new ArrayCollection();
  868.         $this->settingRounds = new ArrayCollection();
  869.         $this->settingClassrooms = new ArrayCollection();
  870.         $this->registrationStudents = new ArrayCollection();
  871.         $this->registrationStudentRegistrations = new ArrayCollection();
  872.         $this->settingFees = new ArrayCollection();
  873.         $this->settingFeeProviders = new ArrayCollection();
  874.         $this->settingFeeSheduls = new ArrayCollection();
  875.         $this->accountingStudentRegistrationFees = new ArrayCollection();
  876.         $this->accountingStudentRegistrationFeeSheduls = new ArrayCollection();
  877.         $this->treasuryCheckouts = new ArrayCollection();
  878.         $this->treasuryCashRegisters = new ArrayCollection();
  879.         $this->treasuryCashMovements = new ArrayCollection();
  880.         $this->accountingStudentRegistrationFeeShedulPayments = new ArrayCollection();
  881.         $this->accountingExpenses = new ArrayCollection();
  882.         $this->schoolYearPeriodes = new ArrayCollection();
  883.         $this->schoolMatterTypes = new ArrayCollection();
  884.         $this->schoolMatters = new ArrayCollection();
  885.         $this->schoolNoteAppreciations = new ArrayCollection();
  886.         $this->schoolSubMatters = new ArrayCollection();
  887.         $this->schoolReportCards = new ArrayCollection();
  888.         $this->schoolAverageReportCards = new ArrayCollection();
  889.         $this->schoolAssessmentByClasses = new ArrayCollection();
  890.         $this->schoolAssessmentByLevels = new ArrayCollection();
  891.         $this->schoolAssessmentByClassByMatters = new ArrayCollection();
  892.         $this->schoolAssessmentByLevelByMatters = new ArrayCollection();
  893.         $this->reportCards = new ArrayCollection();
  894.         $this->accountingStudentRegistrationPayments = new ArrayCollection();
  895.         $this->registrationClassChanges = new ArrayCollection();
  896.         $this->registrationStudentDowngrades = new ArrayCollection();
  897.         $this->registrationStudentDowngradeLines = new ArrayCollection();
  898.         $this->registrationStudentAbandonments = new ArrayCollection();
  899.         $this->registrationStudentAbandonmentLines = new ArrayCollection();
  900.         $this->treasuryPayments = new ArrayCollection();
  901.         $this->registrationStudentPreRegistrations = new ArrayCollection();
  902.         $this->entreTestReportCards = new ArrayCollection();
  903.         $this->preRegistrationEntreTestReportCards = new ArrayCollection();
  904.         $this->matterAveragePreRegistrationEntryTests = new ArrayCollection();
  905.         $this->communicationMessages = new ArrayCollection();
  906.         $this->transportVehicles = new ArrayCollection();
  907.         $this->transportVehicleModels = new ArrayCollection();
  908.         $this->transportVehicleAdministrativeDocuments = new ArrayCollection();
  909.         $this->transportVehicleMechanicalPieces = new ArrayCollection();
  910.         $this->transportVehicleMaintenances = new ArrayCollection();
  911.         $this->transportVehicleFuelTrackings = new ArrayCollection();
  912.         $this->transportZones = new ArrayCollection();
  913.         $this->transportZoneCheckPoints = new ArrayCollection();
  914.         $this->registrationTransportCheckpoints = new ArrayCollection();
  915.         $this->settingDocumentToProvides = new ArrayCollection();
  916.         $this->settingMedicalHistories = new ArrayCollection();
  917.         $this->canteenUtensils = new ArrayCollection();
  918.         $this->canteenStockMovements = new ArrayCollection();
  919.         $this->canteenDishes = new ArrayCollection();
  920.         $this->canteenTimes = new ArrayCollection();
  921.         $this->canteenMenus = new ArrayCollection();
  922.         $this->canteenMenuItems = new ArrayCollection();
  923.         $this->registrationDiets = new ArrayCollection();
  924.         $this->schoolAbsenceAndDelays = new ArrayCollection();
  925.         $this->schoolAbsenceAndDelayNotifications = new ArrayCollection();
  926.         $this->schoolAbsenceAndDelayNotificationLines = new ArrayCollection();
  927.         $this->schoolAbsenceAndDelaySettings = new ArrayCollection();
  928.         $this->schoolAbsenceAndDelayReportCardNotifications = new ArrayCollection();
  929.         $this->schoolAbsenceAndDelayReportCardNotificationLines = new ArrayCollection();
  930.         $this->settingLearningDifficulties = new ArrayCollection();
  931.         $this->accessUsers = new ArrayCollection();
  932.         $this->rhStatuts = new ArrayCollection();
  933.         $this->communicationPredefinedMessages = new ArrayCollection();
  934.         $this->schoolTeachers = new ArrayCollection();
  935.         $this->stockProducts = new ArrayCollection();
  936.         $this->stockKitCategories = new ArrayCollection();
  937.         $this->stockKitProducts = new ArrayCollection();
  938.         $this->stockProductEntries = new ArrayCollection();
  939.         $this->stockProductEntryLines = new ArrayCollection();
  940.         $this->stockProviderKitEntries = new ArrayCollection();
  941.         $this->stockProviderKitEntryLines = new ArrayCollection();
  942.         $this->stockStudentKitEntries = new ArrayCollection();
  943.         $this->stockStudentKitEntryLines = new ArrayCollection();
  944.         $this->stockKitOuts = new ArrayCollection();
  945.         $this->stockKitOutLines = new ArrayCollection();
  946.         $this->stockProductOuts = new ArrayCollection();
  947.         $this->xlsImportations = new ArrayCollection();
  948.         $this->accountingCredits = new ArrayCollection();
  949.         $this->accountingCreditLines = new ArrayCollection();
  950.         $this->schoolAverages = new ArrayCollection();
  951.         $this->schoolStudentAverages = new ArrayCollection();
  952.         $this->schoolCertificates = new ArrayCollection();
  953.         $this->schoolCertificateLines = new ArrayCollection();
  954.         $this->nurseryTimeSheets = new ArrayCollection();
  955.         $this->settingRooms = new ArrayCollection();
  956.         $this->settingTimeTables = new ArrayCollection();
  957.         $this->schoolWorkingTimes = new ArrayCollection();
  958.         $this->schoolWorkingTimeHourLessons = new ArrayCollection();
  959.         $this->mobileParentAppAccounts = new ArrayCollection();
  960.         $this->foundingNotifications = new ArrayCollection();
  961.         $this->equivalentMatters = new ArrayCollection();
  962.         $this->schoolTeacherCallSheets = new ArrayCollection();
  963.         $this->schoolTeacherCallSheetLines = new ArrayCollection();
  964.         $this->schoolTeacherMatterClassrooms = new ArrayCollection();
  965.         $this->rhSalarySalaryAccessories = new ArrayCollection();
  966.         $this->rhSalaryPaySlipPayments = new ArrayCollection();
  967.         $this->rhSalaryContracts = new ArrayCollection();
  968.         $this->rhSalaryContractItems = new ArrayCollection();
  969.         $this->schoolTeacherTimeSheets = new ArrayCollection();
  970.         $this->accountingExpenseCategories = new ArrayCollection();
  971.         $this->schoolAssessments = new ArrayCollection();
  972.         $this->rhSalaryCredits = new ArrayCollection();
  973.         $this->rhSalaryCreditSheduls = new ArrayCollection();
  974.         $this->childEstablishments = new ArrayCollection();
  975.         $this->settingFeeProviderDistributions = new ArrayCollection();
  976.         $this->accountingChequeTrackings = new ArrayCollection();
  977.         $this->accountingChequeTrackingLines = new ArrayCollection();
  978.         $this->salaryBandScales = new ArrayCollection();
  979.         $this->taxReductionShedules = new ArrayCollection();
  980.         $this->logOperations = new ArrayCollection();
  981.         $this->schoolReportCardAbsences = new ArrayCollection();
  982.         $this->wavePayments = new ArrayCollection();
  983.         $this->toxicologicalTestResults = new ArrayCollection();
  984.         $this->toxicologicalTestResultLines = new ArrayCollection();
  985.         $this->toxicologicalTestLaboratories = new ArrayCollection();
  986.         $this->schoolTeacherAbsences = new ArrayCollection();
  987.         $this->gescotiContributions = new ArrayCollection();
  988.         $this->registrationStudentContacts = new ArrayCollection();
  989.         $this->transportCallSheets = new ArrayCollection();
  990.         $this->transportCallSheetLines = new ArrayCollection();
  991.         $this->communicationMessageQueues = new ArrayCollection();
  992.         $this->stockWarehouses = new ArrayCollection();
  993.         $this->stockMovements = new ArrayCollection();
  994.         $this->stockDeliveryNotes = new ArrayCollection();
  995.         $this->stockDeliveryNoteLines = new ArrayCollection();
  996.         $this->stockReceptionVouchers = new ArrayCollection();
  997.         $this->stockReceptionVoucherLines = new ArrayCollection();
  998.         $this->stockExitSlips = new ArrayCollection();
  999.         $this->stockinventories = new ArrayCollection();
  1000.         $this->stockinventoryLines = new ArrayCollection();
  1001.         $this->stocktransfers = new ArrayCollection();
  1002.         $this->stocktransferLines = new ArrayCollection();
  1003.         $this->docManagers = new ArrayCollection();
  1004.         $this->docManagerArticles = new ArrayCollection();
  1005.         $this->transportCallSheetCheckpoints = new ArrayCollection();
  1006.         $this->transportCallSheetCheckpointLines = new ArrayCollection();
  1007.         $this->transportCallJourneys = new ArrayCollection();
  1008.         $this->payrollSyncs = new ArrayCollection();
  1009.         $this->payrollRecords = new ArrayCollection();
  1010.     }
  1011.     public function __toString(){
  1012.         return $this->name;
  1013.     }
  1014.     /**
  1015.      * If manually uploading a file (i.e. not using Symfony Form) ensure an instance
  1016.      * of 'UploadedFile' is injected into this setter to trigger the update. If this
  1017.      * bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
  1018.      * must be able to accept an instance of 'File' as the bundle will inject one here
  1019.      * during Doctrine hydration.
  1020.      *
  1021.      * @param File|\Symfony\Component\HttpFoundation\File\UploadedFile|null $imageFile
  1022.      */
  1023.     public function setImageFile(?File $imageFile null): void
  1024.     {
  1025.         $this->imageFile $imageFile;
  1026.         if (null !== $imageFile) {
  1027.             // It is required that at least one field changes if you are using doctrine
  1028.             // otherwise the event listeners won't be called and the file is lost
  1029.             $this->updated_at = new \DateTimeImmutable();
  1030.         }
  1031.     }
  1032.     public function getImageFile(): ?File
  1033.     {
  1034.         return $this->imageFile;
  1035.     }
  1036.     /**
  1037.      * If manually uploading a file (i.e. not using Symfony Form) ensure an instance
  1038.      * of 'UploadedFile' is injected into this setter to trigger the update. If this
  1039.      * bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
  1040.      * must be able to accept an instance of 'File' as the bundle will inject one here
  1041.      * during Doctrine hydration.
  1042.      *
  1043.      * @param File|\Symfony\Component\HttpFoundation\File\UploadedFile|null $stampFile
  1044.      */
  1045.     public function setStampFile(?File $stampFile null): void
  1046.     {
  1047.         $this->stampFile $stampFile;
  1048.         if (null !== $stampFile) {
  1049.             // It is required that at least one field changes if you are using doctrine
  1050.             // otherwise the event listeners won't be called and the file is lost
  1051.             $this->updated_at = new \DateTimeImmutable();
  1052.         }
  1053.     }
  1054.     public function getStampFile(): ?File
  1055.     {
  1056.         return $this->stampFile;
  1057.     }
  1058.     public function getId(): ?int
  1059.     {
  1060.         return $this->id;
  1061.     }
  1062.     public function getEstablishmentGroup(): ?EstablishmentGroup
  1063.     {
  1064.         return $this->establishmentGroup;
  1065.     }
  1066.     public function setEstablishmentGroup(?EstablishmentGroup $establishmentGroup): self
  1067.     {
  1068.         $this->establishmentGroup $establishmentGroup;
  1069.         return $this;
  1070.     }
  1071.     /**
  1072.      * @return Collection|User[]
  1073.      */
  1074.     public function getUsers(): Collection
  1075.     {
  1076.         return $this->users;
  1077.     }
  1078.     public function addUser(User $user): self
  1079.     {
  1080.         if (!$this->users->contains($user)) {
  1081.             $this->users[] = $user;
  1082.             $user->setEstablishment($this);
  1083.         }
  1084.         return $this;
  1085.     }
  1086.     public function removeUser(User $user): self
  1087.     {
  1088.         if ($this->users->removeElement($user)) {
  1089.             // set the owning side to null (unless already changed)
  1090.             if ($user->getEstablishment() === $this) {
  1091.                 $user->setEstablishment(null);
  1092.             }
  1093.         }
  1094.         return $this;
  1095.     }
  1096.     /**
  1097.      * @return Collection|RhJob[]
  1098.      */
  1099.     public function getRhJobs(): Collection
  1100.     {
  1101.         return $this->rhJobs;
  1102.     }
  1103.     public function addRhJob(RhJob $rhJob): self
  1104.     {
  1105.         if (!$this->rhJobs->contains($rhJob)) {
  1106.             $this->rhJobs[] = $rhJob;
  1107.             $rhJob->setEstablishment($this);
  1108.         }
  1109.         return $this;
  1110.     }
  1111.     public function removeRhJob(RhJob $rhJob): self
  1112.     {
  1113.         if ($this->rhJobs->removeElement($rhJob)) {
  1114.             // set the owning side to null (unless already changed)
  1115.             if ($rhJob->getEstablishment() === $this) {
  1116.                 $rhJob->setEstablishment(null);
  1117.             }
  1118.         }
  1119.         return $this;
  1120.     }
  1121.     /**
  1122.      * @return Collection|RhDepartment[]
  1123.      */
  1124.     public function getRhDepartments(): Collection
  1125.     {
  1126.         return $this->rhDepartments;
  1127.     }
  1128.     public function addRhDepartment(RhDepartment $rhDepartment): self
  1129.     {
  1130.         if (!$this->rhDepartments->contains($rhDepartment)) {
  1131.             $this->rhDepartments[] = $rhDepartment;
  1132.             $rhDepartment->setEstablishment($this);
  1133.         }
  1134.         return $this;
  1135.     }
  1136.     public function removeRhDepartment(RhDepartment $rhDepartment): self
  1137.     {
  1138.         if ($this->rhDepartments->removeElement($rhDepartment)) {
  1139.             // set the owning side to null (unless already changed)
  1140.             if ($rhDepartment->getEstablishment() === $this) {
  1141.                 $rhDepartment->setEstablishment(null);
  1142.             }
  1143.         }
  1144.         return $this;
  1145.     }
  1146.     /**
  1147.      * @return Collection|RhSalary[]
  1148.      */
  1149.     public function getRhSalaries(): Collection
  1150.     {
  1151.         return $this->rhSalaries;
  1152.     }
  1153.     public function addRhSalary(RhSalary $rhSalary): self
  1154.     {
  1155.         if (!$this->rhSalaries->contains($rhSalary)) {
  1156.             $this->rhSalaries[] = $rhSalary;
  1157.             $rhSalary->setEstablishment($this);
  1158.         }
  1159.         return $this;
  1160.     }
  1161.     public function removeRhSalary(RhSalary $rhSalary): self
  1162.     {
  1163.         if ($this->rhSalaries->removeElement($rhSalary)) {
  1164.             // set the owning side to null (unless already changed)
  1165.             if ($rhSalary->getEstablishment() === $this) {
  1166.                 $rhSalary->setEstablishment(null);
  1167.             }
  1168.         }
  1169.         return $this;
  1170.     }
  1171.     /**
  1172.      * @return Collection|RhPaySlip[]
  1173.      */
  1174.     public function getRhPaySlips(): Collection
  1175.     {
  1176.         return $this->rhPaySlips;
  1177.     }
  1178.     public function addRhPaySlip(RhPaySlip $rhPaySlip): self
  1179.     {
  1180.         if (!$this->rhPaySlips->contains($rhPaySlip)) {
  1181.             $this->rhPaySlips[] = $rhPaySlip;
  1182.             $rhPaySlip->setEstablishment($this);
  1183.         }
  1184.         return $this;
  1185.     }
  1186.     public function removeRhPaySlip(RhPaySlip $rhPaySlip): self
  1187.     {
  1188.         if ($this->rhPaySlips->removeElement($rhPaySlip)) {
  1189.             // set the owning side to null (unless already changed)
  1190.             if ($rhPaySlip->getEstablishment() === $this) {
  1191.                 $rhPaySlip->setEstablishment(null);
  1192.             }
  1193.         }
  1194.         return $this;
  1195.     }
  1196.     /**
  1197.      * @return Collection|RhRetainedItem[]
  1198.      */
  1199.     public function getRhRetainedItems(): Collection
  1200.     {
  1201.         return $this->rhRetainedItems;
  1202.     }
  1203.     public function addRhRetainedItem(RhRetainedItem $rhRetainedItem): self
  1204.     {
  1205.         if (!$this->rhRetainedItems->contains($rhRetainedItem)) {
  1206.             $this->rhRetainedItems[] = $rhRetainedItem;
  1207.             $rhRetainedItem->setEstablishment($this);
  1208.         }
  1209.         return $this;
  1210.     }
  1211.     public function removeRhRetainedItem(RhRetainedItem $rhRetainedItem): self
  1212.     {
  1213.         if ($this->rhRetainedItems->removeElement($rhRetainedItem)) {
  1214.             // set the owning side to null (unless already changed)
  1215.             if ($rhRetainedItem->getEstablishment() === $this) {
  1216.                 $rhRetainedItem->setEstablishment(null);
  1217.             }
  1218.         }
  1219.         return $this;
  1220.     }
  1221.     /**
  1222.      * @return Collection|RhTaxableItem[]
  1223.      */
  1224.     public function getRhTaxableItems(): Collection
  1225.     {
  1226.         return $this->rhTaxableItems;
  1227.     }
  1228.     public function addRhTaxableItem(RhTaxableItem $rhTaxableItem): self
  1229.     {
  1230.         if (!$this->rhTaxableItems->contains($rhTaxableItem)) {
  1231.             $this->rhTaxableItems[] = $rhTaxableItem;
  1232.             $rhTaxableItem->setEstablishment($this);
  1233.         }
  1234.         return $this;
  1235.     }
  1236.     public function removeRhTaxableItem(RhTaxableItem $rhTaxableItem): self
  1237.     {
  1238.         if ($this->rhTaxableItems->removeElement($rhTaxableItem)) {
  1239.             // set the owning side to null (unless already changed)
  1240.             if ($rhTaxableItem->getEstablishment() === $this) {
  1241.                 $rhTaxableItem->setEstablishment(null);
  1242.             }
  1243.         }
  1244.         return $this;
  1245.     }
  1246.     /**
  1247.      * @return Collection|RhNonTaxableItem[]
  1248.      */
  1249.     public function getRhNonTaxableItems(): Collection
  1250.     {
  1251.         return $this->rhNonTaxableItems;
  1252.     }
  1253.     public function addRhNonTaxableItem(RhNonTaxableItem $rhNonTaxableItem): self
  1254.     {
  1255.         if (!$this->rhNonTaxableItems->contains($rhNonTaxableItem)) {
  1256.             $this->rhNonTaxableItems[] = $rhNonTaxableItem;
  1257.             $rhNonTaxableItem->setEstablishment($this);
  1258.         }
  1259.         return $this;
  1260.     }
  1261.     public function removeRhNonTaxableItem(RhNonTaxableItem $rhNonTaxableItem): self
  1262.     {
  1263.         if ($this->rhNonTaxableItems->removeElement($rhNonTaxableItem)) {
  1264.             // set the owning side to null (unless already changed)
  1265.             if ($rhNonTaxableItem->getEstablishment() === $this) {
  1266.                 $rhNonTaxableItem->setEstablishment(null);
  1267.             }
  1268.         }
  1269.         return $this;
  1270.     }
  1271.     public function getCode(): ?string
  1272.     {
  1273.         return $this->code;
  1274.     }
  1275.     public function setCode(string $code): self
  1276.     {
  1277.         $this->code $code;
  1278.         return $this;
  1279.     }
  1280.     public function getName(): ?string
  1281.     {
  1282.         return $this->name;
  1283.     }
  1284.     public function setName(string $name): self
  1285.     {
  1286.         $this->name $name;
  1287.         return $this;
  1288.     }
  1289.     public function getCreatedAt(): ?\DateTimeImmutable
  1290.     {
  1291.         return $this->created_at;
  1292.     }
  1293.     public function setCreatedAt(\DateTimeImmutable $created_at): self
  1294.     {
  1295.         $this->created_at $created_at;
  1296.         return $this;
  1297.     }
  1298.     public function getUpdatedAt(): ?\DateTimeImmutable
  1299.     {
  1300.         return $this->updated_at;
  1301.     }
  1302.     public function setUpdatedAt(\DateTimeImmutable $updated_at): self
  1303.     {
  1304.         $this->updated_at $updated_at;
  1305.         return $this;
  1306.     }
  1307.     public function getCreatedBy(): ?int
  1308.     {
  1309.         return $this->created_by;
  1310.     }
  1311.     public function setCreatedBy(int $created_by): self
  1312.     {
  1313.         $this->created_by $created_by;
  1314.         return $this;
  1315.     }
  1316.     public function getUpdatedBy(): ?int
  1317.     {
  1318.         return $this->updated_by;
  1319.     }
  1320.     public function setUpdatedBy(int $updated_by): self
  1321.     {
  1322.         $this->updated_by $updated_by;
  1323.         return $this;
  1324.     }
  1325.     /**
  1326.      * @return Collection|RhSalaryPaySlip[]
  1327.      */
  1328.     public function getRhSalaryPaySlips(): Collection
  1329.     {
  1330.         return $this->rhSalaryPaySlips;
  1331.     }
  1332.     public function addRhSalaryPaySlip(RhSalaryPaySlip $rhSalaryPaySlip): self
  1333.     {
  1334.         if (!$this->rhSalaryPaySlips->contains($rhSalaryPaySlip)) {
  1335.             $this->rhSalaryPaySlips[] = $rhSalaryPaySlip;
  1336.             $rhSalaryPaySlip->setEstablishment($this);
  1337.         }
  1338.         return $this;
  1339.     }
  1340.     public function removeRhSalaryPaySlip(RhSalaryPaySlip $rhSalaryPaySlip): self
  1341.     {
  1342.         if ($this->rhSalaryPaySlips->removeElement($rhSalaryPaySlip)) {
  1343.             // set the owning side to null (unless already changed)
  1344.             if ($rhSalaryPaySlip->getEstablishment() === $this) {
  1345.                 $rhSalaryPaySlip->setEstablishment(null);
  1346.             }
  1347.         }
  1348.         return $this;
  1349.     }
  1350.     /**
  1351.      * @return Collection|RhPaySlipRetainedItem[]
  1352.      */
  1353.     public function getRhPaySlipRetainedItems(): Collection
  1354.     {
  1355.         return $this->rhPaySlipRetainedItems;
  1356.     }
  1357.     public function addRhPaySlipRetainedItem(RhPaySlipRetainedItem $rhPaySlipRetainedItem): self
  1358.     {
  1359.         if (!$this->rhPaySlipRetainedItems->contains($rhPaySlipRetainedItem)) {
  1360.             $this->rhPaySlipRetainedItems[] = $rhPaySlipRetainedItem;
  1361.             $rhPaySlipRetainedItem->setEstablishment($this);
  1362.         }
  1363.         return $this;
  1364.     }
  1365.     public function removeRhPaySlipRetainedItem(RhPaySlipRetainedItem $rhPaySlipRetainedItem): self
  1366.     {
  1367.         if ($this->rhPaySlipRetainedItems->removeElement($rhPaySlipRetainedItem)) {
  1368.             // set the owning side to null (unless already changed)
  1369.             if ($rhPaySlipRetainedItem->getEstablishment() === $this) {
  1370.                 $rhPaySlipRetainedItem->setEstablishment(null);
  1371.             }
  1372.         }
  1373.         return $this;
  1374.     }
  1375.     /**
  1376.      * @return Collection|RhPaySlipTaxableItem[]
  1377.      */
  1378.     public function getRhPaySlipTaxableItems(): Collection
  1379.     {
  1380.         return $this->rhPaySlipTaxableItems;
  1381.     }
  1382.     public function addRhPaySlipTaxableItem(RhPaySlipTaxableItem $rhPaySlipTaxableItem): self
  1383.     {
  1384.         if (!$this->rhPaySlipTaxableItems->contains($rhPaySlipTaxableItem)) {
  1385.             $this->rhPaySlipTaxableItems[] = $rhPaySlipTaxableItem;
  1386.             $rhPaySlipTaxableItem->setEstablishment($this);
  1387.         }
  1388.         return $this;
  1389.     }
  1390.     public function removeRhPaySlipTaxableItem(RhPaySlipTaxableItem $rhPaySlipTaxableItem): self
  1391.     {
  1392.         if ($this->rhPaySlipTaxableItems->removeElement($rhPaySlipTaxableItem)) {
  1393.             // set the owning side to null (unless already changed)
  1394.             if ($rhPaySlipTaxableItem->getEstablishment() === $this) {
  1395.                 $rhPaySlipTaxableItem->setEstablishment(null);
  1396.             }
  1397.         }
  1398.         return $this;
  1399.     }
  1400.     /**
  1401.      * @return Collection|RhPaySlipNonTaxableItem[]
  1402.      */
  1403.     public function getRhPaySlipNonTaxableItems(): Collection
  1404.     {
  1405.         return $this->rhPaySlipNonTaxableItems;
  1406.     }
  1407.     public function addRhPaySlipNonTaxableItem(RhPaySlipNonTaxableItem $rhPaySlipNonTaxableItem): self
  1408.     {
  1409.         if (!$this->rhPaySlipNonTaxableItems->contains($rhPaySlipNonTaxableItem)) {
  1410.             $this->rhPaySlipNonTaxableItems[] = $rhPaySlipNonTaxableItem;
  1411.             $rhPaySlipNonTaxableItem->setEstablishment($this);
  1412.         }
  1413.         return $this;
  1414.     }
  1415.     public function removeRhPaySlipNonTaxableItem(RhPaySlipNonTaxableItem $rhPaySlipNonTaxableItem): self
  1416.     {
  1417.         if ($this->rhPaySlipNonTaxableItems->removeElement($rhPaySlipNonTaxableItem)) {
  1418.             // set the owning side to null (unless already changed)
  1419.             if ($rhPaySlipNonTaxableItem->getEstablishment() === $this) {
  1420.                 $rhPaySlipNonTaxableItem->setEstablishment(null);
  1421.             }
  1422.         }
  1423.         return $this;
  1424.     }
  1425.     public function getPhoneNumber(): ?string
  1426.     {
  1427.         return $this->phone_number;
  1428.     }
  1429.     public function setPhoneNumber(string $phone_number): self
  1430.     {
  1431.         $this->phone_number $phone_number;
  1432.         return $this;
  1433.     }
  1434.     public function getMobileNumber(): ?string
  1435.     {
  1436.         return $this->mobile_number;
  1437.     }
  1438.     public function setMobileNumber(?string $mobile_number): self
  1439.     {
  1440.         $this->mobile_number $mobile_number;
  1441.         return $this;
  1442.     }
  1443.     public function getEmail(): ?string
  1444.     {
  1445.         return $this->email;
  1446.     }
  1447.     public function setEmail(?string $email): self
  1448.     {
  1449.         $this->email $email;
  1450.         return $this;
  1451.     }
  1452.     public function getWebsite(): ?string
  1453.     {
  1454.         return $this->website;
  1455.     }
  1456.     public function setWebsite(?string $website): self
  1457.     {
  1458.         $this->website $website;
  1459.         return $this;
  1460.     }
  1461.     public function getAddress(): ?string
  1462.     {
  1463.         return $this->address;
  1464.     }
  1465.     public function setAddress(?string $address): self
  1466.     {
  1467.         $this->address $address;
  1468.         return $this;
  1469.     }
  1470.     public function getLocation(): ?string
  1471.     {
  1472.         return $this->location;
  1473.     }
  1474.     public function setLocation(?string $location): self
  1475.     {
  1476.         $this->location $location;
  1477.         return $this;
  1478.     }
  1479.     public function getUnderSupervision(): ?string
  1480.     {
  1481.         return $this->under_supervision;
  1482.     }
  1483.     public function setUnderSupervision(?string $under_supervision): self
  1484.     {
  1485.         $this->under_supervision $under_supervision;
  1486.         return $this;
  1487.     }
  1488.     /**
  1489.      * @return Collection|SettingCycle[]
  1490.      */
  1491.     public function getSettingCycles(): Collection
  1492.     {
  1493.         return $this->settingCycles;
  1494.     }
  1495.     public function addSettingCycle(SettingCycle $settingCycle): self
  1496.     {
  1497.         if (!$this->settingCycles->contains($settingCycle)) {
  1498.             $this->settingCycles[] = $settingCycle;
  1499.             $settingCycle->setEstablishment($this);
  1500.         }
  1501.         return $this;
  1502.     }
  1503.     public function removeSettingCycle(SettingCycle $settingCycle): self
  1504.     {
  1505.         if ($this->settingCycles->removeElement($settingCycle)) {
  1506.             // set the owning side to null (unless already changed)
  1507.             if ($settingCycle->getEstablishment() === $this) {
  1508.                 $settingCycle->setEstablishment(null);
  1509.             }
  1510.         }
  1511.         return $this;
  1512.     }
  1513.     /**
  1514.      * @return Collection|SettingLevel[]
  1515.      */
  1516.     public function getSettingLevels(): Collection
  1517.     {
  1518.         return $this->settingLevels;
  1519.     }
  1520.     public function addSettingLevel(SettingLevel $settingLevel): self
  1521.     {
  1522.         if (!$this->settingLevels->contains($settingLevel)) {
  1523.             $this->settingLevels[] = $settingLevel;
  1524.             $settingLevel->setEstablishment($this);
  1525.         }
  1526.         return $this;
  1527.     }
  1528.     public function removeSettingLevel(SettingLevel $settingLevel): self
  1529.     {
  1530.         if ($this->settingLevels->removeElement($settingLevel)) {
  1531.             // set the owning side to null (unless already changed)
  1532.             if ($settingLevel->getEstablishment() === $this) {
  1533.                 $settingLevel->setEstablishment(null);
  1534.             }
  1535.         }
  1536.         return $this;
  1537.     }
  1538.     /**
  1539.      * @return Collection|SettingFaculty[]
  1540.      */
  1541.     public function getSettingFaculties(): Collection
  1542.     {
  1543.         return $this->settingFaculties;
  1544.     }
  1545.     public function addSettingFaculty(SettingFaculty $settingFaculty): self
  1546.     {
  1547.         if (!$this->settingFaculties->contains($settingFaculty)) {
  1548.             $this->settingFaculties[] = $settingFaculty;
  1549.             $settingFaculty->setEstablishment($this);
  1550.         }
  1551.         return $this;
  1552.     }
  1553.     public function removeSettingFaculty(SettingFaculty $settingFaculty): self
  1554.     {
  1555.         if ($this->settingFaculties->removeElement($settingFaculty)) {
  1556.             // set the owning side to null (unless already changed)
  1557.             if ($settingFaculty->getEstablishment() === $this) {
  1558.                 $settingFaculty->setEstablishment(null);
  1559.             }
  1560.         }
  1561.         return $this;
  1562.     }
  1563.     /**
  1564.      * @return Collection|SettingRound[]
  1565.      */
  1566.     public function getSettingRounds(): Collection
  1567.     {
  1568.         return $this->settingRounds;
  1569.     }
  1570.     public function addSettingRound(SettingRound $settingRound): self
  1571.     {
  1572.         if (!$this->settingRounds->contains($settingRound)) {
  1573.             $this->settingRounds[] = $settingRound;
  1574.             $settingRound->setEstablishment($this);
  1575.         }
  1576.         return $this;
  1577.     }
  1578.     public function removeSettingRound(SettingRound $settingRound): self
  1579.     {
  1580.         if ($this->settingRounds->removeElement($settingRound)) {
  1581.             // set the owning side to null (unless already changed)
  1582.             if ($settingRound->getEstablishment() === $this) {
  1583.                 $settingRound->setEstablishment(null);
  1584.             }
  1585.         }
  1586.         return $this;
  1587.     }
  1588.     /**
  1589.      * @return Collection|SettingClassroom[]
  1590.      */
  1591.     public function getSettingClassrooms(): Collection
  1592.     {
  1593.         return $this->settingClassrooms;
  1594.     }
  1595.     public function addSettingClassroom(SettingClassroom $settingClassroom): self
  1596.     {
  1597.         if (!$this->settingClassrooms->contains($settingClassroom)) {
  1598.             $this->settingClassrooms[] = $settingClassroom;
  1599.             $settingClassroom->setEstablishment($this);
  1600.         }
  1601.         return $this;
  1602.     }
  1603.     public function removeSettingClassroom(SettingClassroom $settingClassroom): self
  1604.     {
  1605.         if ($this->settingClassrooms->removeElement($settingClassroom)) {
  1606.             // set the owning side to null (unless already changed)
  1607.             if ($settingClassroom->getEstablishment() === $this) {
  1608.                 $settingClassroom->setEstablishment(null);
  1609.             }
  1610.         }
  1611.         return $this;
  1612.     }
  1613.     /**
  1614.      * @return Collection|RegistrationStudent[]
  1615.      */
  1616.     public function getRegistrationStudents(): Collection
  1617.     {
  1618.         return $this->registrationStudents;
  1619.     }
  1620.     public function addRegistrationStudent(RegistrationStudent $registrationStudent): self
  1621.     {
  1622.         if (!$this->registrationStudents->contains($registrationStudent)) {
  1623.             $this->registrationStudents[] = $registrationStudent;
  1624.             $registrationStudent->setEstablishment($this);
  1625.         }
  1626.         return $this;
  1627.     }
  1628.     public function removeRegistrationStudent(RegistrationStudent $registrationStudent): self
  1629.     {
  1630.         if ($this->registrationStudents->removeElement($registrationStudent)) {
  1631.             // set the owning side to null (unless already changed)
  1632.             if ($registrationStudent->getEstablishment() === $this) {
  1633.                 $registrationStudent->setEstablishment(null);
  1634.             }
  1635.         }
  1636.         return $this;
  1637.     }
  1638.     /**
  1639.      * @return Collection|RegistrationStudentRegistration[]
  1640.      */
  1641.     public function getRegistrationStudentRegistrations(): Collection
  1642.     {
  1643.         return $this->registrationStudentRegistrations;
  1644.     }
  1645.     public function addRegistrationStudentRegistration(RegistrationStudentRegistration $registrationStudentRegistration): self
  1646.     {
  1647.         if (!$this->registrationStudentRegistrations->contains($registrationStudentRegistration)) {
  1648.             $this->registrationStudentRegistrations[] = $registrationStudentRegistration;
  1649.             $registrationStudentRegistration->setEstablishment($this);
  1650.         }
  1651.         return $this;
  1652.     }
  1653.     public function removeRegistrationStudentRegistration(RegistrationStudentRegistration $registrationStudentRegistration): self
  1654.     {
  1655.         if ($this->registrationStudentRegistrations->removeElement($registrationStudentRegistration)) {
  1656.             // set the owning side to null (unless already changed)
  1657.             if ($registrationStudentRegistration->getEstablishment() === $this) {
  1658.                 $registrationStudentRegistration->setEstablishment(null);
  1659.             }
  1660.         }
  1661.         return $this;
  1662.     }
  1663.     /**
  1664.      * @return Collection|SettingFee[]
  1665.      */
  1666.     public function getSettingFees(): Collection
  1667.     {
  1668.         return $this->settingFees;
  1669.     }
  1670.     public function addSettingFee(SettingFee $settingFee): self
  1671.     {
  1672.         if (!$this->settingFees->contains($settingFee)) {
  1673.             $this->settingFees[] = $settingFee;
  1674.             $settingFee->setEstablishment($this);
  1675.         }
  1676.         return $this;
  1677.     }
  1678.     public function removeSettingFee(SettingFee $settingFee): self
  1679.     {
  1680.         if ($this->settingFees->removeElement($settingFee)) {
  1681.             // set the owning side to null (unless already changed)
  1682.             if ($settingFee->getEstablishment() === $this) {
  1683.                 $settingFee->setEstablishment(null);
  1684.             }
  1685.         }
  1686.         return $this;
  1687.     }
  1688.     /**
  1689.      * @return Collection|SettingFeeProvider[]
  1690.      */
  1691.     public function getSettingFeeProviders(): Collection
  1692.     {
  1693.         return $this->settingFeeProviders;
  1694.     }
  1695.     public function addSettingFeeProvider(SettingFeeProvider $settingFeeProvider): self
  1696.     {
  1697.         if (!$this->settingFeeProviders->contains($settingFeeProvider)) {
  1698.             $this->settingFeeProviders[] = $settingFeeProvider;
  1699.             $settingFeeProvider->setEstablishment($this);
  1700.         }
  1701.         return $this;
  1702.     }
  1703.     public function removeSettingFeeProvider(SettingFeeProvider $settingFeeProvider): self
  1704.     {
  1705.         if ($this->settingFeeProviders->removeElement($settingFeeProvider)) {
  1706.             // set the owning side to null (unless already changed)
  1707.             if ($settingFeeProvider->getEstablishment() === $this) {
  1708.                 $settingFeeProvider->setEstablishment(null);
  1709.             }
  1710.         }
  1711.         return $this;
  1712.     }
  1713.     /**
  1714.      * @return Collection|SettingFeeShedul[]
  1715.      */
  1716.     public function getSettingFeeSheduls(): Collection
  1717.     {
  1718.         return $this->settingFeeSheduls;
  1719.     }
  1720.     public function addSettingFeeShedul(SettingFeeShedul $settingFeeShedul): self
  1721.     {
  1722.         if (!$this->settingFeeSheduls->contains($settingFeeShedul)) {
  1723.             $this->settingFeeSheduls[] = $settingFeeShedul;
  1724.             $settingFeeShedul->setEstablishment($this);
  1725.         }
  1726.         return $this;
  1727.     }
  1728.     public function removeSettingFeeShedul(SettingFeeShedul $settingFeeShedul): self
  1729.     {
  1730.         if ($this->settingFeeSheduls->removeElement($settingFeeShedul)) {
  1731.             // set the owning side to null (unless already changed)
  1732.             if ($settingFeeShedul->getEstablishment() === $this) {
  1733.                 $settingFeeShedul->setEstablishment(null);
  1734.             }
  1735.         }
  1736.         return $this;
  1737.     }
  1738.     /**
  1739.      * @return Collection|AccountingStudentRegistrationFee[]
  1740.      */
  1741.     public function getAccountingStudentRegistrationFees(): Collection
  1742.     {
  1743.         return $this->accountingStudentRegistrationFees;
  1744.     }
  1745.     public function addAccountingStudentRegistrationFee(AccountingStudentRegistrationFee $accountingStudentRegistrationFee): self
  1746.     {
  1747.         if (!$this->accountingStudentRegistrationFees->contains($accountingStudentRegistrationFee)) {
  1748.             $this->accountingStudentRegistrationFees[] = $accountingStudentRegistrationFee;
  1749.             $accountingStudentRegistrationFee->setEstablishment($this);
  1750.         }
  1751.         return $this;
  1752.     }
  1753.     public function removeAccountingStudentRegistrationFee(AccountingStudentRegistrationFee $accountingStudentRegistrationFee): self
  1754.     {
  1755.         if ($this->accountingStudentRegistrationFees->removeElement($accountingStudentRegistrationFee)) {
  1756.             // set the owning side to null (unless already changed)
  1757.             if ($accountingStudentRegistrationFee->getEstablishment() === $this) {
  1758.                 $accountingStudentRegistrationFee->setEstablishment(null);
  1759.             }
  1760.         }
  1761.         return $this;
  1762.     }
  1763.     /**
  1764.      * @return Collection|AccountingStudentRegistrationFeeShedul[]
  1765.      */
  1766.     public function getAccountingStudentRegistrationFeeSheduls(): Collection
  1767.     {
  1768.         return $this->accountingStudentRegistrationFeeSheduls;
  1769.     }
  1770.     public function addAccountingStudentRegistrationFeeShedul(AccountingStudentRegistrationFeeShedul $accountingStudentRegistrationFeeShedul): self
  1771.     {
  1772.         if (!$this->accountingStudentRegistrationFeeSheduls->contains($accountingStudentRegistrationFeeShedul)) {
  1773.             $this->accountingStudentRegistrationFeeSheduls[] = $accountingStudentRegistrationFeeShedul;
  1774.             $accountingStudentRegistrationFeeShedul->setEstablishment($this);
  1775.         }
  1776.         return $this;
  1777.     }
  1778.     public function removeAccountingStudentRegistrationFeeShedul(AccountingStudentRegistrationFeeShedul $accountingStudentRegistrationFeeShedul): self
  1779.     {
  1780.         if ($this->accountingStudentRegistrationFeeSheduls->removeElement($accountingStudentRegistrationFeeShedul)) {
  1781.             // set the owning side to null (unless already changed)
  1782.             if ($accountingStudentRegistrationFeeShedul->getEstablishment() === $this) {
  1783.                 $accountingStudentRegistrationFeeShedul->setEstablishment(null);
  1784.             }
  1785.         }
  1786.         return $this;
  1787.     }
  1788.     /**
  1789.      * @return Collection|TreasuryCheckout[]
  1790.      */
  1791.     public function getTreasuryCheckouts(): Collection
  1792.     {
  1793.         return $this->treasuryCheckouts;
  1794.     }
  1795.     public function addTreasuryCheckout(TreasuryCheckout $treasuryCheckout): self
  1796.     {
  1797.         if (!$this->treasuryCheckouts->contains($treasuryCheckout)) {
  1798.             $this->treasuryCheckouts[] = $treasuryCheckout;
  1799.             $treasuryCheckout->setEstablishment($this);
  1800.         }
  1801.         return $this;
  1802.     }
  1803.     public function removeTreasuryCheckout(TreasuryCheckout $treasuryCheckout): self
  1804.     {
  1805.         if ($this->treasuryCheckouts->removeElement($treasuryCheckout)) {
  1806.             // set the owning side to null (unless already changed)
  1807.             if ($treasuryCheckout->getEstablishment() === $this) {
  1808.                 $treasuryCheckout->setEstablishment(null);
  1809.             }
  1810.         }
  1811.         return $this;
  1812.     }
  1813.     /**
  1814.      * @return Collection|TreasuryCashRegister[]
  1815.      */
  1816.     public function getTreasuryCashRegisters(): Collection
  1817.     {
  1818.         return $this->treasuryCashRegisters;
  1819.     }
  1820.     public function addTreasuryCashRegister(TreasuryCashRegister $treasuryCashRegister): self
  1821.     {
  1822.         if (!$this->treasuryCashRegisters->contains($treasuryCashRegister)) {
  1823.             $this->treasuryCashRegisters[] = $treasuryCashRegister;
  1824.             $treasuryCashRegister->setEstablishment($this);
  1825.         }
  1826.         return $this;
  1827.     }
  1828.     public function removeTreasuryCashRegister(TreasuryCashRegister $treasuryCashRegister): self
  1829.     {
  1830.         if ($this->treasuryCashRegisters->removeElement($treasuryCashRegister)) {
  1831.             // set the owning side to null (unless already changed)
  1832.             if ($treasuryCashRegister->getEstablishment() === $this) {
  1833.                 $treasuryCashRegister->setEstablishment(null);
  1834.             }
  1835.         }
  1836.         return $this;
  1837.     }
  1838.     /**
  1839.      * @return Collection|TreasuryCashMovement[]
  1840.      */
  1841.     public function getTreasuryCashMovements(): Collection
  1842.     {
  1843.         return $this->treasuryCashMovements;
  1844.     }
  1845.     public function addTreasuryCashMovement(TreasuryCashMovement $treasuryCashMovement): self
  1846.     {
  1847.         if (!$this->treasuryCashMovements->contains($treasuryCashMovement)) {
  1848.             $this->treasuryCashMovements[] = $treasuryCashMovement;
  1849.             $treasuryCashMovement->setEstablishment($this);
  1850.         }
  1851.         return $this;
  1852.     }
  1853.     public function removeTreasuryCashMovement(TreasuryCashMovement $treasuryCashMovement): self
  1854.     {
  1855.         if ($this->treasuryCashMovements->removeElement($treasuryCashMovement)) {
  1856.             // set the owning side to null (unless already changed)
  1857.             if ($treasuryCashMovement->getEstablishment() === $this) {
  1858.                 $treasuryCashMovement->setEstablishment(null);
  1859.             }
  1860.         }
  1861.         return $this;
  1862.     }
  1863.     /**
  1864.      * @return Collection|AccountingStudentRegistrationFeeShedulPayment[]
  1865.      */
  1866.     public function getAccountingStudentRegistrationFeeShedulPayments(): Collection
  1867.     {
  1868.         return $this->accountingStudentRegistrationFeeShedulPayments;
  1869.     }
  1870.     public function addAccountingStudentRegistrationFeeShedulPayment(AccountingStudentRegistrationFeeShedulPayment $accountingStudentRegistrationFeeShedulPayment): self
  1871.     {
  1872.         if (!$this->accountingStudentRegistrationFeeShedulPayments->contains($accountingStudentRegistrationFeeShedulPayment)) {
  1873.             $this->accountingStudentRegistrationFeeShedulPayments[] = $accountingStudentRegistrationFeeShedulPayment;
  1874.             $accountingStudentRegistrationFeeShedulPayment->setEstablishment($this);
  1875.         }
  1876.         return $this;
  1877.     }
  1878.     public function removeAccountingStudentRegistrationFeeShedulPayment(AccountingStudentRegistrationFeeShedulPayment $accountingStudentRegistrationFeeShedulPayment): self
  1879.     {
  1880.         if ($this->accountingStudentRegistrationFeeShedulPayments->removeElement($accountingStudentRegistrationFeeShedulPayment)) {
  1881.             // set the owning side to null (unless already changed)
  1882.             if ($accountingStudentRegistrationFeeShedulPayment->getEstablishment() === $this) {
  1883.                 $accountingStudentRegistrationFeeShedulPayment->setEstablishment(null);
  1884.             }
  1885.         }
  1886.         return $this;
  1887.     }
  1888.     /**
  1889.      * @return Collection|AccountingExpense[]
  1890.      */
  1891.     public function getAccountingExpenses(): Collection
  1892.     {
  1893.         return $this->accountingExpenses;
  1894.     }
  1895.     public function addAccountingExpense(AccountingExpense $accountingExpense): self
  1896.     {
  1897.         if (!$this->accountingExpenses->contains($accountingExpense)) {
  1898.             $this->accountingExpenses[] = $accountingExpense;
  1899.             $accountingExpense->setEstablishment($this);
  1900.         }
  1901.         return $this;
  1902.     }
  1903.     public function removeAccountingExpense(AccountingExpense $accountingExpense): self
  1904.     {
  1905.         if ($this->accountingExpenses->removeElement($accountingExpense)) {
  1906.             // set the owning side to null (unless already changed)
  1907.             if ($accountingExpense->getEstablishment() === $this) {
  1908.                 $accountingExpense->setEstablishment(null);
  1909.             }
  1910.         }
  1911.         return $this;
  1912.     }
  1913.     /**
  1914.      * @return Collection|SchoolYearPeriode[]
  1915.      */
  1916.     public function getSchoolYearPeriodes(): Collection
  1917.     {
  1918.         return $this->schoolYearPeriodes;
  1919.     }
  1920.     public function addSchoolYearPeriode(SchoolYearPeriode $schoolYearPeriode): self
  1921.     {
  1922.         if (!$this->schoolYearPeriodes->contains($schoolYearPeriode)) {
  1923.             $this->schoolYearPeriodes[] = $schoolYearPeriode;
  1924.             $schoolYearPeriode->setEstablishment($this);
  1925.         }
  1926.         return $this;
  1927.     }
  1928.     public function removeSchoolYearPeriode(SchoolYearPeriode $schoolYearPeriode): self
  1929.     {
  1930.         if ($this->schoolYearPeriodes->removeElement($schoolYearPeriode)) {
  1931.             // set the owning side to null (unless already changed)
  1932.             if ($schoolYearPeriode->getEstablishment() === $this) {
  1933.                 $schoolYearPeriode->setEstablishment(null);
  1934.             }
  1935.         }
  1936.         return $this;
  1937.     }
  1938.     /**
  1939.      * @return Collection|SchoolMatterType[]
  1940.      */
  1941.     public function getSchoolMatterTypes(): Collection
  1942.     {
  1943.         return $this->schoolMatterTypes;
  1944.     }
  1945.     public function addSchoolMatterType(SchoolMatterType $schoolMatterType): self
  1946.     {
  1947.         if (!$this->schoolMatterTypes->contains($schoolMatterType)) {
  1948.             $this->schoolMatterTypes[] = $schoolMatterType;
  1949.             $schoolMatterType->setEstablishment($this);
  1950.         }
  1951.         return $this;
  1952.     }
  1953.     public function removeSchoolMatterType(SchoolMatterType $schoolMatterType): self
  1954.     {
  1955.         if ($this->schoolMatterTypes->removeElement($schoolMatterType)) {
  1956.             // set the owning side to null (unless already changed)
  1957.             if ($schoolMatterType->getEstablishment() === $this) {
  1958.                 $schoolMatterType->setEstablishment(null);
  1959.             }
  1960.         }
  1961.         return $this;
  1962.     }
  1963.     /**
  1964.      * @return Collection|SchoolMatter[]
  1965.      */
  1966.     public function getSchoolMatters(): Collection
  1967.     {
  1968.         return $this->schoolMatters;
  1969.     }
  1970.     public function addSchoolMatter(SchoolMatter $schoolMatter): self
  1971.     {
  1972.         if (!$this->schoolMatters->contains($schoolMatter)) {
  1973.             $this->schoolMatters[] = $schoolMatter;
  1974.             $schoolMatter->setEstablishment($this);
  1975.         }
  1976.         return $this;
  1977.     }
  1978.     public function removeSchoolMatter(SchoolMatter $schoolMatter): self
  1979.     {
  1980.         if ($this->schoolMatters->removeElement($schoolMatter)) {
  1981.             // set the owning side to null (unless already changed)
  1982.             if ($schoolMatter->getEstablishment() === $this) {
  1983.                 $schoolMatter->setEstablishment(null);
  1984.             }
  1985.         }
  1986.         return $this;
  1987.     }
  1988.     /**
  1989.      * @return Collection|SchoolNoteAppreciation[]
  1990.      */
  1991.     public function getSchoolNoteAppreciations(): Collection
  1992.     {
  1993.         return $this->schoolNoteAppreciations;
  1994.     }
  1995.     public function addSchoolNoteAppreciation(SchoolNoteAppreciation $schoolNoteAppreciation): self
  1996.     {
  1997.         if (!$this->schoolNoteAppreciations->contains($schoolNoteAppreciation)) {
  1998.             $this->schoolNoteAppreciations[] = $schoolNoteAppreciation;
  1999.             $schoolNoteAppreciation->setEstablishment($this);
  2000.         }
  2001.         return $this;
  2002.     }
  2003.     public function removeSchoolNoteAppreciation(SchoolNoteAppreciation $schoolNoteAppreciation): self
  2004.     {
  2005.         if ($this->schoolNoteAppreciations->removeElement($schoolNoteAppreciation)) {
  2006.             // set the owning side to null (unless already changed)
  2007.             if ($schoolNoteAppreciation->getEstablishment() === $this) {
  2008.                 $schoolNoteAppreciation->setEstablishment(null);
  2009.             }
  2010.         }
  2011.         return $this;
  2012.     }
  2013.     /**
  2014.      * @return Collection|SchoolSubMatter[]
  2015.      */
  2016.     public function getSchoolSubMatters(): Collection
  2017.     {
  2018.         return $this->schoolSubMatters;
  2019.     }
  2020.     public function addSchoolSubMatter(SchoolSubMatter $schoolSubMatter): self
  2021.     {
  2022.         if (!$this->schoolSubMatters->contains($schoolSubMatter)) {
  2023.             $this->schoolSubMatters[] = $schoolSubMatter;
  2024.             $schoolSubMatter->setEstablishment($this);
  2025.         }
  2026.         return $this;
  2027.     }
  2028.     public function removeSchoolSubMatter(SchoolSubMatter $schoolSubMatter): self
  2029.     {
  2030.         if ($this->schoolSubMatters->removeElement($schoolSubMatter)) {
  2031.             // set the owning side to null (unless already changed)
  2032.             if ($schoolSubMatter->getEstablishment() === $this) {
  2033.                 $schoolSubMatter->setEstablishment(null);
  2034.             }
  2035.         }
  2036.         return $this;
  2037.     }
  2038.     /**
  2039.      * @return Collection|SchoolReportCard[]
  2040.      */
  2041.     public function getSchoolReportCards(): Collection
  2042.     {
  2043.         return $this->schoolReportCards;
  2044.     }
  2045.     public function addSchoolReportCard(SchoolReportCard $schoolReportCard): self
  2046.     {
  2047.         if (!$this->schoolReportCards->contains($schoolReportCard)) {
  2048.             $this->schoolReportCards[] = $schoolReportCard;
  2049.             $schoolReportCard->setEstablishment($this);
  2050.         }
  2051.         return $this;
  2052.     }
  2053.     public function removeSchoolReportCard(SchoolReportCard $schoolReportCard): self
  2054.     {
  2055.         if ($this->schoolReportCards->removeElement($schoolReportCard)) {
  2056.             // set the owning side to null (unless already changed)
  2057.             if ($schoolReportCard->getEstablishment() === $this) {
  2058.                 $schoolReportCard->setEstablishment(null);
  2059.             }
  2060.         }
  2061.         return $this;
  2062.     }
  2063.     /**
  2064.      * @return Collection|SchoolAverageReportCard[]
  2065.      */
  2066.     public function getSchoolAverageReportCards(): Collection
  2067.     {
  2068.         return $this->schoolAverageReportCards;
  2069.     }
  2070.     public function addSchoolAverageReportCard(SchoolAverageReportCard $schoolAverageReportCard): self
  2071.     {
  2072.         if (!$this->schoolAverageReportCards->contains($schoolAverageReportCard)) {
  2073.             $this->schoolAverageReportCards[] = $schoolAverageReportCard;
  2074.             $schoolAverageReportCard->setEstablishment($this);
  2075.         }
  2076.         return $this;
  2077.     }
  2078.     public function removeSchoolAverageReportCard(SchoolAverageReportCard $schoolAverageReportCard): self
  2079.     {
  2080.         if ($this->schoolAverageReportCards->removeElement($schoolAverageReportCard)) {
  2081.             // set the owning side to null (unless already changed)
  2082.             if ($schoolAverageReportCard->getEstablishment() === $this) {
  2083.                 $schoolAverageReportCard->setEstablishment(null);
  2084.             }
  2085.         }
  2086.         return $this;
  2087.     }
  2088.     /**
  2089.      * @return Collection|SchoolAssessmentByClass[]
  2090.      */
  2091.     public function getSchoolAssessmentByClasses(): Collection
  2092.     {
  2093.         return $this->schoolAssessmentByClasses;
  2094.     }
  2095.     public function addSchoolAssessmentByClass(SchoolAssessmentByClass $schoolAssessmentByClass): self
  2096.     {
  2097.         if (!$this->schoolAssessmentByClasses->contains($schoolAssessmentByClass)) {
  2098.             $this->schoolAssessmentByClasses[] = $schoolAssessmentByClass;
  2099.             $schoolAssessmentByClass->setEstablishment($this);
  2100.         }
  2101.         return $this;
  2102.     }
  2103.     public function removeSchoolAssessmentByClass(SchoolAssessmentByClass $schoolAssessmentByClass): self
  2104.     {
  2105.         if ($this->schoolAssessmentByClasses->removeElement($schoolAssessmentByClass)) {
  2106.             // set the owning side to null (unless already changed)
  2107.             if ($schoolAssessmentByClass->getEstablishment() === $this) {
  2108.                 $schoolAssessmentByClass->setEstablishment(null);
  2109.             }
  2110.         }
  2111.         return $this;
  2112.     }
  2113.     /**
  2114.      * @return Collection|SchoolAssessmentByLevel[]
  2115.      */
  2116.     public function getSchoolAssessmentByLevels(): Collection
  2117.     {
  2118.         return $this->schoolAssessmentByLevels;
  2119.     }
  2120.     public function addSchoolAssessmentByLevel(SchoolAssessmentByLevel $schoolAssessmentByLevel): self
  2121.     {
  2122.         if (!$this->schoolAssessmentByLevels->contains($schoolAssessmentByLevel)) {
  2123.             $this->schoolAssessmentByLevels[] = $schoolAssessmentByLevel;
  2124.             $schoolAssessmentByLevel->setEstablishment($this);
  2125.         }
  2126.         return $this;
  2127.     }
  2128.     public function removeSchoolAssessmentByLevel(SchoolAssessmentByLevel $schoolAssessmentByLevel): self
  2129.     {
  2130.         if ($this->schoolAssessmentByLevels->removeElement($schoolAssessmentByLevel)) {
  2131.             // set the owning side to null (unless already changed)
  2132.             if ($schoolAssessmentByLevel->getEstablishment() === $this) {
  2133.                 $schoolAssessmentByLevel->setEstablishment(null);
  2134.             }
  2135.         }
  2136.         return $this;
  2137.     }
  2138.     /**
  2139.      * @return Collection|SchoolAssessmentByClassByMatter[]
  2140.      */
  2141.     public function getSchoolAssessmentByClassByMatters(): Collection
  2142.     {
  2143.         return $this->schoolAssessmentByClassByMatters;
  2144.     }
  2145.     public function addSchoolAssessmentByClassByMatter(SchoolAssessmentByClassByMatter $schoolAssessmentByClassByMatter): self
  2146.     {
  2147.         if (!$this->schoolAssessmentByClassByMatters->contains($schoolAssessmentByClassByMatter)) {
  2148.             $this->schoolAssessmentByClassByMatters[] = $schoolAssessmentByClassByMatter;
  2149.             $schoolAssessmentByClassByMatter->setEstablishment($this);
  2150.         }
  2151.         return $this;
  2152.     }
  2153.     public function removeSchoolAssessmentByClassByMatter(SchoolAssessmentByClassByMatter $schoolAssessmentByClassByMatter): self
  2154.     {
  2155.         if ($this->schoolAssessmentByClassByMatters->removeElement($schoolAssessmentByClassByMatter)) {
  2156.             // set the owning side to null (unless already changed)
  2157.             if ($schoolAssessmentByClassByMatter->getEstablishment() === $this) {
  2158.                 $schoolAssessmentByClassByMatter->setEstablishment(null);
  2159.             }
  2160.         }
  2161.         return $this;
  2162.     }
  2163.     /**
  2164.      * @return Collection|SchoolAssessmentByLevelByMatter[]
  2165.      */
  2166.     public function getSchoolAssessmentByLevelByMatters(): Collection
  2167.     {
  2168.         return $this->schoolAssessmentByLevelByMatters;
  2169.     }
  2170.     public function addSchoolAssessmentByLevelByMatter(SchoolAssessmentByLevelByMatter $schoolAssessmentByLevelByMatter): self
  2171.     {
  2172.         if (!$this->schoolAssessmentByLevelByMatters->contains($schoolAssessmentByLevelByMatter)) {
  2173.             $this->schoolAssessmentByLevelByMatters[] = $schoolAssessmentByLevelByMatter;
  2174.             $schoolAssessmentByLevelByMatter->setEstablishment($this);
  2175.         }
  2176.         return $this;
  2177.     }
  2178.     public function removeSchoolAssessmentByLevelByMatter(SchoolAssessmentByLevelByMatter $schoolAssessmentByLevelByMatter): self
  2179.     {
  2180.         if ($this->schoolAssessmentByLevelByMatters->removeElement($schoolAssessmentByLevelByMatter)) {
  2181.             // set the owning side to null (unless already changed)
  2182.             if ($schoolAssessmentByLevelByMatter->getEstablishment() === $this) {
  2183.                 $schoolAssessmentByLevelByMatter->setEstablishment(null);
  2184.             }
  2185.         }
  2186.         return $this;
  2187.     }
  2188.     /**
  2189.      * @return Collection|ReportCard[]
  2190.      */
  2191.     public function getReportCards(): Collection
  2192.     {
  2193.         return $this->reportCards;
  2194.     }
  2195.     public function addReportCard(ReportCard $reportCard): self
  2196.     {
  2197.         if (!$this->reportCards->contains($reportCard)) {
  2198.             $this->reportCards[] = $reportCard;
  2199.             $reportCard->setEstablishment($this);
  2200.         }
  2201.         return $this;
  2202.     }
  2203.     public function removeReportCard(ReportCard $reportCard): self
  2204.     {
  2205.         if ($this->reportCards->removeElement($reportCard)) {
  2206.             // set the owning side to null (unless already changed)
  2207.             if ($reportCard->getEstablishment() === $this) {
  2208.                 $reportCard->setEstablishment(null);
  2209.             }
  2210.         }
  2211.         return $this;
  2212.     }
  2213.     public function getType(): ?string
  2214.     {
  2215.         return $this->type;
  2216.     }
  2217.     public function setType(string $type): self
  2218.     {
  2219.         $this->type $type;
  2220.         return $this;
  2221.     }
  2222.     /**
  2223.      * @return Collection|AccountingStudentRegistrationPayment[]
  2224.      */
  2225.     public function getAccountingStudentRegistrationPayments(): Collection
  2226.     {
  2227.         return $this->accountingStudentRegistrationPayments;
  2228.     }
  2229.     public function addAccountingStudentRegistrationPayment(AccountingStudentRegistrationPayment $accountingStudentRegistrationPayment): self
  2230.     {
  2231.         if (!$this->accountingStudentRegistrationPayments->contains($accountingStudentRegistrationPayment)) {
  2232.             $this->accountingStudentRegistrationPayments[] = $accountingStudentRegistrationPayment;
  2233.             $accountingStudentRegistrationPayment->setEstablishment($this);
  2234.         }
  2235.         return $this;
  2236.     }
  2237.     public function removeAccountingStudentRegistrationPayment(AccountingStudentRegistrationPayment $accountingStudentRegistrationPayment): self
  2238.     {
  2239.         if ($this->accountingStudentRegistrationPayments->removeElement($accountingStudentRegistrationPayment)) {
  2240.             // set the owning side to null (unless already changed)
  2241.             if ($accountingStudentRegistrationPayment->getEstablishment() === $this) {
  2242.                 $accountingStudentRegistrationPayment->setEstablishment(null);
  2243.             }
  2244.         }
  2245.         return $this;
  2246.     }
  2247.     public function getImage(): ?string
  2248.     {
  2249.         return $this->image;
  2250.     }
  2251.     public function setImage(?string $image): self
  2252.     {
  2253.         $this->image $image;
  2254.         return $this;
  2255.     }
  2256.     /**
  2257.      * @return Collection|RegistrationClassChange[]
  2258.      */
  2259.     public function getRegistrationClassChanges(): Collection
  2260.     {
  2261.         return $this->registrationClassChanges;
  2262.     }
  2263.     public function addRegistrationClassChange(RegistrationClassChange $registrationClassChange): self
  2264.     {
  2265.         if (!$this->registrationClassChanges->contains($registrationClassChange)) {
  2266.             $this->registrationClassChanges[] = $registrationClassChange;
  2267.             $registrationClassChange->setEstablishment($this);
  2268.         }
  2269.         return $this;
  2270.     }
  2271.     public function removeRegistrationClassChange(RegistrationClassChange $registrationClassChange): self
  2272.     {
  2273.         if ($this->registrationClassChanges->removeElement($registrationClassChange)) {
  2274.             // set the owning side to null (unless already changed)
  2275.             if ($registrationClassChange->getEstablishment() === $this) {
  2276.                 $registrationClassChange->setEstablishment(null);
  2277.             }
  2278.         }
  2279.         return $this;
  2280.     }
  2281.     /**
  2282.      * @return Collection|RegistrationStudentDowngrade[]
  2283.      */
  2284.     public function getRegistrationStudentDowngrades(): Collection
  2285.     {
  2286.         return $this->registrationStudentDowngrades;
  2287.     }
  2288.     public function addRegistrationStudentDowngrade(RegistrationStudentDowngrade $registrationStudentDowngrade): self
  2289.     {
  2290.         if (!$this->registrationStudentDowngrades->contains($registrationStudentDowngrade)) {
  2291.             $this->registrationStudentDowngrades[] = $registrationStudentDowngrade;
  2292.             $registrationStudentDowngrade->setEstablishment($this);
  2293.         }
  2294.         return $this;
  2295.     }
  2296.     public function removeRegistrationStudentDowngrade(RegistrationStudentDowngrade $registrationStudentDowngrade): self
  2297.     {
  2298.         if ($this->registrationStudentDowngrades->removeElement($registrationStudentDowngrade)) {
  2299.             // set the owning side to null (unless already changed)
  2300.             if ($registrationStudentDowngrade->getEstablishment() === $this) {
  2301.                 $registrationStudentDowngrade->setEstablishment(null);
  2302.             }
  2303.         }
  2304.         return $this;
  2305.     }
  2306.     /**
  2307.      * @return Collection|RegistrationStudentDowngradeLine[]
  2308.      */
  2309.     public function getRegistrationStudentDowngradeLines(): Collection
  2310.     {
  2311.         return $this->registrationStudentDowngradeLines;
  2312.     }
  2313.     public function addRegistrationStudentDowngradeLine(RegistrationStudentDowngradeLine $registrationStudentDowngradeLine): self
  2314.     {
  2315.         if (!$this->registrationStudentDowngradeLines->contains($registrationStudentDowngradeLine)) {
  2316.             $this->registrationStudentDowngradeLines[] = $registrationStudentDowngradeLine;
  2317.             $registrationStudentDowngradeLine->setEstablishment($this);
  2318.         }
  2319.         return $this;
  2320.     }
  2321.     public function removeRegistrationStudentDowngradeLine(RegistrationStudentDowngradeLine $registrationStudentDowngradeLine): self
  2322.     {
  2323.         if ($this->registrationStudentDowngradeLines->removeElement($registrationStudentDowngradeLine)) {
  2324.             // set the owning side to null (unless already changed)
  2325.             if ($registrationStudentDowngradeLine->getEstablishment() === $this) {
  2326.                 $registrationStudentDowngradeLine->setEstablishment(null);
  2327.             }
  2328.         }
  2329.         return $this;
  2330.     }
  2331.     /**
  2332.      * @return Collection|RegistrationStudentAbandonment[]
  2333.      */
  2334.     public function getRegistrationStudentAbandonments(): Collection
  2335.     {
  2336.         return $this->registrationStudentAbandonments;
  2337.     }
  2338.     public function addRegistrationStudentAbandonment(RegistrationStudentAbandonment $registrationStudentAbandonment): self
  2339.     {
  2340.         if (!$this->registrationStudentAbandonments->contains($registrationStudentAbandonment)) {
  2341.             $this->registrationStudentAbandonments[] = $registrationStudentAbandonment;
  2342.             $registrationStudentAbandonment->setEstablishment($this);
  2343.         }
  2344.         return $this;
  2345.     }
  2346.     public function removeRegistrationStudentAbandonment(RegistrationStudentAbandonment $registrationStudentAbandonment): self
  2347.     {
  2348.         if ($this->registrationStudentAbandonments->removeElement($registrationStudentAbandonment)) {
  2349.             // set the owning side to null (unless already changed)
  2350.             if ($registrationStudentAbandonment->getEstablishment() === $this) {
  2351.                 $registrationStudentAbandonment->setEstablishment(null);
  2352.             }
  2353.         }
  2354.         return $this;
  2355.     }
  2356.     /**
  2357.      * @return Collection|RegistrationStudentAbandonmentLine[]
  2358.      */
  2359.     public function getRegistrationStudentAbandonmentLines(): Collection
  2360.     {
  2361.         return $this->registrationStudentAbandonmentLines;
  2362.     }
  2363.     public function addRegistrationStudentAbandonmentLine(RegistrationStudentAbandonmentLine $registrationStudentAbandonmentLine): self
  2364.     {
  2365.         if (!$this->registrationStudentAbandonmentLines->contains($registrationStudentAbandonmentLine)) {
  2366.             $this->registrationStudentAbandonmentLines[] = $registrationStudentAbandonmentLine;
  2367.             $registrationStudentAbandonmentLine->setEstablishment($this);
  2368.         }
  2369.         return $this;
  2370.     }
  2371.     public function removeRegistrationStudentAbandonmentLine(RegistrationStudentAbandonmentLine $registrationStudentAbandonmentLine): self
  2372.     {
  2373.         if ($this->registrationStudentAbandonmentLines->removeElement($registrationStudentAbandonmentLine)) {
  2374.             // set the owning side to null (unless already changed)
  2375.             if ($registrationStudentAbandonmentLine->getEstablishment() === $this) {
  2376.                 $registrationStudentAbandonmentLine->setEstablishment(null);
  2377.             }
  2378.         }
  2379.         return $this;
  2380.     }
  2381.     /**
  2382.      * @return Collection|TreasuryPayment[]
  2383.      */
  2384.     public function getTreasuryPayments(): Collection
  2385.     {
  2386.         return $this->treasuryPayments;
  2387.     }
  2388.     public function addTreasuryPayment(TreasuryPayment $treasuryPayment): self
  2389.     {
  2390.         if (!$this->treasuryPayments->contains($treasuryPayment)) {
  2391.             $this->treasuryPayments[] = $treasuryPayment;
  2392.             $treasuryPayment->setEstablishment($this);
  2393.         }
  2394.         return $this;
  2395.     }
  2396.     public function removeTreasuryPayment(TreasuryPayment $treasuryPayment): self
  2397.     {
  2398.         if ($this->treasuryPayments->removeElement($treasuryPayment)) {
  2399.             // set the owning side to null (unless already changed)
  2400.             if ($treasuryPayment->getEstablishment() === $this) {
  2401.                 $treasuryPayment->setEstablishment(null);
  2402.             }
  2403.         }
  2404.         return $this;
  2405.     }
  2406.     /**
  2407.      * @return Collection|RegistrationStudentPreRegistration[]
  2408.      */
  2409.     public function getRegistrationStudentPreRegistrations(): Collection
  2410.     {
  2411.         return $this->registrationStudentPreRegistrations;
  2412.     }
  2413.     public function addRegistrationStudentPreRegistration(RegistrationStudentPreRegistration $registrationStudentPreRegistration): self
  2414.     {
  2415.         if (!$this->registrationStudentPreRegistrations->contains($registrationStudentPreRegistration)) {
  2416.             $this->registrationStudentPreRegistrations[] = $registrationStudentPreRegistration;
  2417.             $registrationStudentPreRegistration->setEstablishment($this);
  2418.         }
  2419.         return $this;
  2420.     }
  2421.     public function removeRegistrationStudentPreRegistration(RegistrationStudentPreRegistration $registrationStudentPreRegistration): self
  2422.     {
  2423.         if ($this->registrationStudentPreRegistrations->removeElement($registrationStudentPreRegistration)) {
  2424.             // set the owning side to null (unless already changed)
  2425.             if ($registrationStudentPreRegistration->getEstablishment() === $this) {
  2426.                 $registrationStudentPreRegistration->setEstablishment(null);
  2427.             }
  2428.         }
  2429.         return $this;
  2430.     }
  2431.     public function getMainActivity(): ?string
  2432.     {
  2433.         return $this->main_activity;
  2434.     }
  2435.     public function setMainActivity(?string $main_activity): self
  2436.     {
  2437.         $this->main_activity $main_activity;
  2438.         return $this;
  2439.     }
  2440.     /**
  2441.      * @return Collection|EntreTestReportCard[]
  2442.      */
  2443.     public function getEntreTestReportCards(): Collection
  2444.     {
  2445.         return $this->entreTestReportCards;
  2446.     }
  2447.     public function addEntreTestReportCard(EntreTestReportCard $entreTestReportCard): self
  2448.     {
  2449.         if (!$this->entreTestReportCards->contains($entreTestReportCard)) {
  2450.             $this->entreTestReportCards[] = $entreTestReportCard;
  2451.             $entreTestReportCard->setEstablishment($this);
  2452.         }
  2453.         return $this;
  2454.     }
  2455.     public function removeEntreTestReportCard(EntreTestReportCard $entreTestReportCard): self
  2456.     {
  2457.         if ($this->entreTestReportCards->removeElement($entreTestReportCard)) {
  2458.             // set the owning side to null (unless already changed)
  2459.             if ($entreTestReportCard->getEstablishment() === $this) {
  2460.                 $entreTestReportCard->setEstablishment(null);
  2461.             }
  2462.         }
  2463.         return $this;
  2464.     }
  2465.     /**
  2466.      * @return Collection|PreRegistrationEntreTestReportCard[]
  2467.      */
  2468.     public function getPreRegistrationEntreTestReportCards(): Collection
  2469.     {
  2470.         return $this->preRegistrationEntreTestReportCards;
  2471.     }
  2472.     public function addPreRegistrationEntreTestReportCard(PreRegistrationEntreTestReportCard $preRegistrationEntreTestReportCard): self
  2473.     {
  2474.         if (!$this->preRegistrationEntreTestReportCards->contains($preRegistrationEntreTestReportCard)) {
  2475.             $this->preRegistrationEntreTestReportCards[] = $preRegistrationEntreTestReportCard;
  2476.             $preRegistrationEntreTestReportCard->setEstablishment($this);
  2477.         }
  2478.         return $this;
  2479.     }
  2480.     public function removePreRegistrationEntreTestReportCard(PreRegistrationEntreTestReportCard $preRegistrationEntreTestReportCard): self
  2481.     {
  2482.         if ($this->preRegistrationEntreTestReportCards->removeElement($preRegistrationEntreTestReportCard)) {
  2483.             // set the owning side to null (unless already changed)
  2484.             if ($preRegistrationEntreTestReportCard->getEstablishment() === $this) {
  2485.                 $preRegistrationEntreTestReportCard->setEstablishment(null);
  2486.             }
  2487.         }
  2488.         return $this;
  2489.     }
  2490.     /**
  2491.      * @return Collection|MatterAveragePreRegistrationEntryTest[]
  2492.      */
  2493.     public function getMatterAveragePreRegistrationEntryTests(): Collection
  2494.     {
  2495.         return $this->matterAveragePreRegistrationEntryTests;
  2496.     }
  2497.     public function addMatterAveragePreRegistrationEntryTest(MatterAveragePreRegistrationEntryTest $matterAveragePreRegistrationEntryTest): self
  2498.     {
  2499.         if (!$this->matterAveragePreRegistrationEntryTests->contains($matterAveragePreRegistrationEntryTest)) {
  2500.             $this->matterAveragePreRegistrationEntryTests[] = $matterAveragePreRegistrationEntryTest;
  2501.             $matterAveragePreRegistrationEntryTest->setEstablishment($this);
  2502.         }
  2503.         return $this;
  2504.     }
  2505.     public function removeMatterAveragePreRegistrationEntryTest(MatterAveragePreRegistrationEntryTest $matterAveragePreRegistrationEntryTest): self
  2506.     {
  2507.         if ($this->matterAveragePreRegistrationEntryTests->removeElement($matterAveragePreRegistrationEntryTest)) {
  2508.             // set the owning side to null (unless already changed)
  2509.             if ($matterAveragePreRegistrationEntryTest->getEstablishment() === $this) {
  2510.                 $matterAveragePreRegistrationEntryTest->setEstablishment(null);
  2511.             }
  2512.         }
  2513.         return $this;
  2514.     }
  2515.     /**
  2516.      * @return Collection|CommunicationMessage[]
  2517.      */
  2518.     public function getCommunicationMessages(): Collection
  2519.     {
  2520.         return $this->communicationMessages;
  2521.     }
  2522.     public function addCommunicationMessage(CommunicationMessage $communicationMessage): self
  2523.     {
  2524.         if (!$this->communicationMessages->contains($communicationMessage)) {
  2525.             $this->communicationMessages[] = $communicationMessage;
  2526.             $communicationMessage->setEstablishment($this);
  2527.         }
  2528.         return $this;
  2529.     }
  2530.     public function removeCommunicationMessage(CommunicationMessage $communicationMessage): self
  2531.     {
  2532.         if ($this->communicationMessages->removeElement($communicationMessage)) {
  2533.             // set the owning side to null (unless already changed)
  2534.             if ($communicationMessage->getEstablishment() === $this) {
  2535.                 $communicationMessage->setEstablishment(null);
  2536.             }
  2537.         }
  2538.         return $this;
  2539.     }
  2540.     /** @see \Serializable::serialize() */
  2541.     public function serialize()
  2542.     {
  2543.         return serialize(array($this->id,$this->image,));
  2544.     }
  2545.     /** @see \Serializable::unserialize() */
  2546.     public function unserialize($serialized)
  2547.     {
  2548.         list($this->id$this->image,) = unserialize($serialized, array('allowed_classes' => false));
  2549.     }
  2550.     /**
  2551.      * @return Collection|TransportVehicle[]
  2552.      */
  2553.     public function getTransportVehicles(): Collection
  2554.     {
  2555.         return $this->transportVehicles;
  2556.     }
  2557.     public function addTransportVehicle(TransportVehicle $transportVehicle): self
  2558.     {
  2559.         if (!$this->transportVehicles->contains($transportVehicle)) {
  2560.             $this->transportVehicles[] = $transportVehicle;
  2561.             $transportVehicle->setEstablishment($this);
  2562.         }
  2563.         return $this;
  2564.     }
  2565.     public function removeTransportVehicle(TransportVehicle $transportVehicle): self
  2566.     {
  2567.         if ($this->transportVehicles->removeElement($transportVehicle)) {
  2568.             // set the owning side to null (unless already changed)
  2569.             if ($transportVehicle->getEstablishment() === $this) {
  2570.                 $transportVehicle->setEstablishment(null);
  2571.             }
  2572.         }
  2573.         return $this;
  2574.     }
  2575.     /**
  2576.      * @return Collection|TransportVehicleModel[]
  2577.      */
  2578.     public function getTransportVehicleModels(): Collection
  2579.     {
  2580.         return $this->transportVehicleModels;
  2581.     }
  2582.     public function addTransportVehicleModel(TransportVehicleModel $transportVehicleModel): self
  2583.     {
  2584.         if (!$this->transportVehicleModels->contains($transportVehicleModel)) {
  2585.             $this->transportVehicleModels[] = $transportVehicleModel;
  2586.             $transportVehicleModel->setEstablishment($this);
  2587.         }
  2588.         return $this;
  2589.     }
  2590.     public function removeTransportVehicleModel(TransportVehicleModel $transportVehicleModel): self
  2591.     {
  2592.         if ($this->transportVehicleModels->removeElement($transportVehicleModel)) {
  2593.             // set the owning side to null (unless already changed)
  2594.             if ($transportVehicleModel->getEstablishment() === $this) {
  2595.                 $transportVehicleModel->setEstablishment(null);
  2596.             }
  2597.         }
  2598.         return $this;
  2599.     }
  2600.     /**
  2601.      * @return Collection|TransportVehicleAdministrativeDocument[]
  2602.      */
  2603.     public function getTransportVehicleAdministrativeDocuments(): Collection
  2604.     {
  2605.         return $this->transportVehicleAdministrativeDocuments;
  2606.     }
  2607.     public function addTransportVehicleAdministrativeDocument(TransportVehicleAdministrativeDocument $transportVehicleAdministrativeDocument): self
  2608.     {
  2609.         if (!$this->transportVehicleAdministrativeDocuments->contains($transportVehicleAdministrativeDocument)) {
  2610.             $this->transportVehicleAdministrativeDocuments[] = $transportVehicleAdministrativeDocument;
  2611.             $transportVehicleAdministrativeDocument->setEstablishment($this);
  2612.         }
  2613.         return $this;
  2614.     }
  2615.     public function removeTransportVehicleAdministrativeDocument(TransportVehicleAdministrativeDocument $transportVehicleAdministrativeDocument): self
  2616.     {
  2617.         if ($this->transportVehicleAdministrativeDocuments->removeElement($transportVehicleAdministrativeDocument)) {
  2618.             // set the owning side to null (unless already changed)
  2619.             if ($transportVehicleAdministrativeDocument->getEstablishment() === $this) {
  2620.                 $transportVehicleAdministrativeDocument->setEstablishment(null);
  2621.             }
  2622.         }
  2623.         return $this;
  2624.     }
  2625.     /**
  2626.      * @return Collection|TransportVehicleMechanicalPiece[]
  2627.      */
  2628.     public function getTransportVehicleMechanicalPieces(): Collection
  2629.     {
  2630.         return $this->transportVehicleMechanicalPieces;
  2631.     }
  2632.     public function addTransportVehicleMechanicalPiece(TransportVehicleMechanicalPiece $transportVehicleMechanicalPiece): self
  2633.     {
  2634.         if (!$this->transportVehicleMechanicalPieces->contains($transportVehicleMechanicalPiece)) {
  2635.             $this->transportVehicleMechanicalPieces[] = $transportVehicleMechanicalPiece;
  2636.             $transportVehicleMechanicalPiece->setEstablishment($this);
  2637.         }
  2638.         return $this;
  2639.     }
  2640.     public function removeTransportVehicleMechanicalPiece(TransportVehicleMechanicalPiece $transportVehicleMechanicalPiece): self
  2641.     {
  2642.         if ($this->transportVehicleMechanicalPieces->removeElement($transportVehicleMechanicalPiece)) {
  2643.             // set the owning side to null (unless already changed)
  2644.             if ($transportVehicleMechanicalPiece->getEstablishment() === $this) {
  2645.                 $transportVehicleMechanicalPiece->setEstablishment(null);
  2646.             }
  2647.         }
  2648.         return $this;
  2649.     }
  2650.     /**
  2651.      * @return Collection|TransportVehicleMaintenance[]
  2652.      */
  2653.     public function getTransportVehicleMaintenances(): Collection
  2654.     {
  2655.         return $this->transportVehicleMaintenances;
  2656.     }
  2657.     public function addTransportVehicleMaintenance(TransportVehicleMaintenance $transportVehicleMaintenance): self
  2658.     {
  2659.         if (!$this->transportVehicleMaintenances->contains($transportVehicleMaintenance)) {
  2660.             $this->transportVehicleMaintenances[] = $transportVehicleMaintenance;
  2661.             $transportVehicleMaintenance->setEstablishment($this);
  2662.         }
  2663.         return $this;
  2664.     }
  2665.     public function removeTransportVehicleMaintenance(TransportVehicleMaintenance $transportVehicleMaintenance): self
  2666.     {
  2667.         if ($this->transportVehicleMaintenances->removeElement($transportVehicleMaintenance)) {
  2668.             // set the owning side to null (unless already changed)
  2669.             if ($transportVehicleMaintenance->getEstablishment() === $this) {
  2670.                 $transportVehicleMaintenance->setEstablishment(null);
  2671.             }
  2672.         }
  2673.         return $this;
  2674.     }
  2675.     /**
  2676.      * @return Collection|TransportVehicleFuelTracking[]
  2677.      */
  2678.     public function getTransportVehicleFuelTrackings(): Collection
  2679.     {
  2680.         return $this->transportVehicleFuelTrackings;
  2681.     }
  2682.     public function addTransportVehicleFuelTracking(TransportVehicleFuelTracking $transportVehicleFuelTracking): self
  2683.     {
  2684.         if (!$this->transportVehicleFuelTrackings->contains($transportVehicleFuelTracking)) {
  2685.             $this->transportVehicleFuelTrackings[] = $transportVehicleFuelTracking;
  2686.             $transportVehicleFuelTracking->setEstablishment($this);
  2687.         }
  2688.         return $this;
  2689.     }
  2690.     public function removeTransportVehicleFuelTracking(TransportVehicleFuelTracking $transportVehicleFuelTracking): self
  2691.     {
  2692.         if ($this->transportVehicleFuelTrackings->removeElement($transportVehicleFuelTracking)) {
  2693.             // set the owning side to null (unless already changed)
  2694.             if ($transportVehicleFuelTracking->getEstablishment() === $this) {
  2695.                 $transportVehicleFuelTracking->setEstablishment(null);
  2696.             }
  2697.         }
  2698.         return $this;
  2699.     }
  2700.     /**
  2701.      * @return Collection|TransportZone[]
  2702.      */
  2703.     public function getTransportZones(): Collection
  2704.     {
  2705.         return $this->transportZones;
  2706.     }
  2707.     public function addTransportZone(TransportZone $transportZone): self
  2708.     {
  2709.         if (!$this->transportZones->contains($transportZone)) {
  2710.             $this->transportZones[] = $transportZone;
  2711.             $transportZone->setEstablishment($this);
  2712.         }
  2713.         return $this;
  2714.     }
  2715.     public function removeTransportZone(TransportZone $transportZone): self
  2716.     {
  2717.         if ($this->transportZones->removeElement($transportZone)) {
  2718.             // set the owning side to null (unless already changed)
  2719.             if ($transportZone->getEstablishment() === $this) {
  2720.                 $transportZone->setEstablishment(null);
  2721.             }
  2722.         }
  2723.         return $this;
  2724.     }
  2725.     /**
  2726.      * @return Collection|TransportZoneCheckPoint[]
  2727.      */
  2728.     public function getTransportZoneCheckPoints(): Collection
  2729.     {
  2730.         return $this->transportZoneCheckPoints;
  2731.     }
  2732.     public function addTransportZoneCheckPoint(TransportZoneCheckPoint $transportZoneCheckPoint): self
  2733.     {
  2734.         if (!$this->transportZoneCheckPoints->contains($transportZoneCheckPoint)) {
  2735.             $this->transportZoneCheckPoints[] = $transportZoneCheckPoint;
  2736.             $transportZoneCheckPoint->setEstablishment($this);
  2737.         }
  2738.         return $this;
  2739.     }
  2740.     public function removeTransportZoneCheckPoint(TransportZoneCheckPoint $transportZoneCheckPoint): self
  2741.     {
  2742.         if ($this->transportZoneCheckPoints->removeElement($transportZoneCheckPoint)) {
  2743.             // set the owning side to null (unless already changed)
  2744.             if ($transportZoneCheckPoint->getEstablishment() === $this) {
  2745.                 $transportZoneCheckPoint->setEstablishment(null);
  2746.             }
  2747.         }
  2748.         return $this;
  2749.     }
  2750.     /**
  2751.      * @return Collection|RegistrationTransportCheckpoint[]
  2752.      */
  2753.     public function getRegistrationTransportCheckpoints(): Collection
  2754.     {
  2755.         return $this->registrationTransportCheckpoints;
  2756.     }
  2757.     public function addRegistrationTransportCheckpoint(RegistrationTransportCheckpoint $registrationTransportCheckpoint): self
  2758.     {
  2759.         if (!$this->registrationTransportCheckpoints->contains($registrationTransportCheckpoint)) {
  2760.             $this->registrationTransportCheckpoints[] = $registrationTransportCheckpoint;
  2761.             $registrationTransportCheckpoint->setEstablishment($this);
  2762.         }
  2763.         return $this;
  2764.     }
  2765.     public function removeRegistrationTransportCheckpoint(RegistrationTransportCheckpoint $registrationTransportCheckpoint): self
  2766.     {
  2767.         if ($this->registrationTransportCheckpoints->removeElement($registrationTransportCheckpoint)) {
  2768.             // set the owning side to null (unless already changed)
  2769.             if ($registrationTransportCheckpoint->getEstablishment() === $this) {
  2770.                 $registrationTransportCheckpoint->setEstablishment(null);
  2771.             }
  2772.         }
  2773.         return $this;
  2774.     }
  2775.     /**
  2776.      * @return Collection|SettingDocumentToProvide[]
  2777.      */
  2778.     public function getSettingDocumentToProvides(): Collection
  2779.     {
  2780.         return $this->settingDocumentToProvides;
  2781.     }
  2782.     public function addSettingDocumentToProvide(SettingDocumentToProvide $settingDocumentToProvide): self
  2783.     {
  2784.         if (!$this->settingDocumentToProvides->contains($settingDocumentToProvide)) {
  2785.             $this->settingDocumentToProvides[] = $settingDocumentToProvide;
  2786.             $settingDocumentToProvide->setEstablishment($this);
  2787.         }
  2788.         return $this;
  2789.     }
  2790.     public function removeSettingDocumentToProvide(SettingDocumentToProvide $settingDocumentToProvide): self
  2791.     {
  2792.         if ($this->settingDocumentToProvides->removeElement($settingDocumentToProvide)) {
  2793.             // set the owning side to null (unless already changed)
  2794.             if ($settingDocumentToProvide->getEstablishment() === $this) {
  2795.                 $settingDocumentToProvide->setEstablishment(null);
  2796.             }
  2797.         }
  2798.         return $this;
  2799.     }
  2800.     /**
  2801.      * @return Collection|SettingMedicalHistory[]
  2802.      */
  2803.     public function getSettingMedicalHistories(): Collection
  2804.     {
  2805.         return $this->settingMedicalHistories;
  2806.     }
  2807.     public function addSettingMedicalHistory(SettingMedicalHistory $settingMedicalHistory): self
  2808.     {
  2809.         if (!$this->settingMedicalHistories->contains($settingMedicalHistory)) {
  2810.             $this->settingMedicalHistories[] = $settingMedicalHistory;
  2811.             $settingMedicalHistory->setEstablishment($this);
  2812.         }
  2813.         return $this;
  2814.     }
  2815.     public function removeSettingMedicalHistory(SettingMedicalHistory $settingMedicalHistory): self
  2816.     {
  2817.         if ($this->settingMedicalHistories->removeElement($settingMedicalHistory)) {
  2818.             // set the owning side to null (unless already changed)
  2819.             if ($settingMedicalHistory->getEstablishment() === $this) {
  2820.                 $settingMedicalHistory->setEstablishment(null);
  2821.             }
  2822.         }
  2823.         return $this;
  2824.     }
  2825.     /**
  2826.      * @return Collection|CanteenUtensil[]
  2827.      */
  2828.     public function getCanteenUtensils(): Collection
  2829.     {
  2830.         return $this->canteenUtensils;
  2831.     }
  2832.     public function addCanteenUtensil(CanteenUtensil $canteenUtensil): self
  2833.     {
  2834.         if (!$this->canteenUtensils->contains($canteenUtensil)) {
  2835.             $this->canteenUtensils[] = $canteenUtensil;
  2836.             $canteenUtensil->setEstablishment($this);
  2837.         }
  2838.         return $this;
  2839.     }
  2840.     public function removeCanteenUtensil(CanteenUtensil $canteenUtensil): self
  2841.     {
  2842.         if ($this->canteenUtensils->removeElement($canteenUtensil)) {
  2843.             // set the owning side to null (unless already changed)
  2844.             if ($canteenUtensil->getEstablishment() === $this) {
  2845.                 $canteenUtensil->setEstablishment(null);
  2846.             }
  2847.         }
  2848.         return $this;
  2849.     }
  2850.     /**
  2851.      * @return Collection|CanteenStockMovement[]
  2852.      */
  2853.     public function getCanteenStockMovements(): Collection
  2854.     {
  2855.         return $this->canteenStockMovements;
  2856.     }
  2857.     public function addCanteenStockMovement(CanteenStockMovement $canteenStockMovement): self
  2858.     {
  2859.         if (!$this->canteenStockMovements->contains($canteenStockMovement)) {
  2860.             $this->canteenStockMovements[] = $canteenStockMovement;
  2861.             $canteenStockMovement->setEstablishment($this);
  2862.         }
  2863.         return $this;
  2864.     }
  2865.     public function removeCanteenStockMovement(CanteenStockMovement $canteenStockMovement): self
  2866.     {
  2867.         if ($this->canteenStockMovements->removeElement($canteenStockMovement)) {
  2868.             // set the owning side to null (unless already changed)
  2869.             if ($canteenStockMovement->getEstablishment() === $this) {
  2870.                 $canteenStockMovement->setEstablishment(null);
  2871.             }
  2872.         }
  2873.         return $this;
  2874.     }
  2875.     /**
  2876.      * @return Collection|CanteenDish[]
  2877.      */
  2878.     public function getCanteenDishes(): Collection
  2879.     {
  2880.         return $this->canteenDishes;
  2881.     }
  2882.     public function addCanteenDish(CanteenDish $canteenDish): self
  2883.     {
  2884.         if (!$this->canteenDishes->contains($canteenDish)) {
  2885.             $this->canteenDishes[] = $canteenDish;
  2886.             $canteenDish->setEstablishment($this);
  2887.         }
  2888.         return $this;
  2889.     }
  2890.     public function removeCanteenDish(CanteenDish $canteenDish): self
  2891.     {
  2892.         if ($this->canteenDishes->removeElement($canteenDish)) {
  2893.             // set the owning side to null (unless already changed)
  2894.             if ($canteenDish->getEstablishment() === $this) {
  2895.                 $canteenDish->setEstablishment(null);
  2896.             }
  2897.         }
  2898.         return $this;
  2899.     }
  2900.     /**
  2901.      * @return Collection|CanteenTime[]
  2902.      */
  2903.     public function getCanteenTimes(): Collection
  2904.     {
  2905.         return $this->canteenTimes;
  2906.     }
  2907.     public function addCanteenTime(CanteenTime $canteenTime): self
  2908.     {
  2909.         if (!$this->canteenTimes->contains($canteenTime)) {
  2910.             $this->canteenTimes[] = $canteenTime;
  2911.             $canteenTime->setEstablishment($this);
  2912.         }
  2913.         return $this;
  2914.     }
  2915.     public function removeCanteenTime(CanteenTime $canteenTime): self
  2916.     {
  2917.         if ($this->canteenTimes->removeElement($canteenTime)) {
  2918.             // set the owning side to null (unless already changed)
  2919.             if ($canteenTime->getEstablishment() === $this) {
  2920.                 $canteenTime->setEstablishment(null);
  2921.             }
  2922.         }
  2923.         return $this;
  2924.     }
  2925.     /**
  2926.      * @return Collection|CanteenMenu[]
  2927.      */
  2928.     public function getCanteenMenus(): Collection
  2929.     {
  2930.         return $this->canteenMenus;
  2931.     }
  2932.     public function addCanteenMenu(CanteenMenu $canteenMenu): self
  2933.     {
  2934.         if (!$this->canteenMenus->contains($canteenMenu)) {
  2935.             $this->canteenMenus[] = $canteenMenu;
  2936.             $canteenMenu->setEstablishment($this);
  2937.         }
  2938.         return $this;
  2939.     }
  2940.     public function removeCanteenMenu(CanteenMenu $canteenMenu): self
  2941.     {
  2942.         if ($this->canteenMenus->removeElement($canteenMenu)) {
  2943.             // set the owning side to null (unless already changed)
  2944.             if ($canteenMenu->getEstablishment() === $this) {
  2945.                 $canteenMenu->setEstablishment(null);
  2946.             }
  2947.         }
  2948.         return $this;
  2949.     }
  2950.     /**
  2951.      * @return Collection|CanteenMenuItem[]
  2952.      */
  2953.     public function getCanteenMenuItems(): Collection
  2954.     {
  2955.         return $this->canteenMenuItems;
  2956.     }
  2957.     public function addCanteenMenuItem(CanteenMenuItem $canteenMenuItem): self
  2958.     {
  2959.         if (!$this->canteenMenuItems->contains($canteenMenuItem)) {
  2960.             $this->canteenMenuItems[] = $canteenMenuItem;
  2961.             $canteenMenuItem->setEstablishment($this);
  2962.         }
  2963.         return $this;
  2964.     }
  2965.     public function removeCanteenMenuItem(CanteenMenuItem $canteenMenuItem): self
  2966.     {
  2967.         if ($this->canteenMenuItems->removeElement($canteenMenuItem)) {
  2968.             // set the owning side to null (unless already changed)
  2969.             if ($canteenMenuItem->getEstablishment() === $this) {
  2970.                 $canteenMenuItem->setEstablishment(null);
  2971.             }
  2972.         }
  2973.         return $this;
  2974.     }
  2975.     /**
  2976.      * @return Collection|RegistrationDiet[]
  2977.      */
  2978.     public function getRegistrationDiets(): Collection
  2979.     {
  2980.         return $this->registrationDiets;
  2981.     }
  2982.     public function addRegistrationDiet(RegistrationDiet $registrationDiet): self
  2983.     {
  2984.         if (!$this->registrationDiets->contains($registrationDiet)) {
  2985.             $this->registrationDiets[] = $registrationDiet;
  2986.             $registrationDiet->setEstablishment($this);
  2987.         }
  2988.         return $this;
  2989.     }
  2990.     public function removeRegistrationDiet(RegistrationDiet $registrationDiet): self
  2991.     {
  2992.         if ($this->registrationDiets->removeElement($registrationDiet)) {
  2993.             // set the owning side to null (unless already changed)
  2994.             if ($registrationDiet->getEstablishment() === $this) {
  2995.                 $registrationDiet->setEstablishment(null);
  2996.             }
  2997.         }
  2998.         return $this;
  2999.     }
  3000.     /**
  3001.      * @return Collection|SchoolAbsenceAndDelay[]
  3002.      */
  3003.     public function getSchoolAbsenceAndDelays(): Collection
  3004.     {
  3005.         return $this->schoolAbsenceAndDelays;
  3006.     }
  3007.     public function addSchoolAbsenceAndDelay(SchoolAbsenceAndDelay $schoolAbsenceAndDelay): self
  3008.     {
  3009.         if (!$this->schoolAbsenceAndDelays->contains($schoolAbsenceAndDelay)) {
  3010.             $this->schoolAbsenceAndDelays[] = $schoolAbsenceAndDelay;
  3011.             $schoolAbsenceAndDelay->setEstablishment($this);
  3012.         }
  3013.         return $this;
  3014.     }
  3015.     public function removeSchoolAbsenceAndDelay(SchoolAbsenceAndDelay $schoolAbsenceAndDelay): self
  3016.     {
  3017.         if ($this->schoolAbsenceAndDelays->removeElement($schoolAbsenceAndDelay)) {
  3018.             // set the owning side to null (unless already changed)
  3019.             if ($schoolAbsenceAndDelay->getEstablishment() === $this) {
  3020.                 $schoolAbsenceAndDelay->setEstablishment(null);
  3021.             }
  3022.         }
  3023.         return $this;
  3024.     }
  3025.     /**
  3026.      * @return Collection|SchoolAbsenceAndDelayNotification[]
  3027.      */
  3028.     public function getSchoolAbsenceAndDelayNotifications(): Collection
  3029.     {
  3030.         return $this->schoolAbsenceAndDelayNotifications;
  3031.     }
  3032.     public function addSchoolAbsenceAndDelayNotification(SchoolAbsenceAndDelayNotification $schoolAbsenceAndDelayNotification): self
  3033.     {
  3034.         if (!$this->schoolAbsenceAndDelayNotifications->contains($schoolAbsenceAndDelayNotification)) {
  3035.             $this->schoolAbsenceAndDelayNotifications[] = $schoolAbsenceAndDelayNotification;
  3036.             $schoolAbsenceAndDelayNotification->setEstablishment($this);
  3037.         }
  3038.         return $this;
  3039.     }
  3040.     public function removeSchoolAbsenceAndDelayNotification(SchoolAbsenceAndDelayNotification $schoolAbsenceAndDelayNotification): self
  3041.     {
  3042.         if ($this->schoolAbsenceAndDelayNotifications->removeElement($schoolAbsenceAndDelayNotification)) {
  3043.             // set the owning side to null (unless already changed)
  3044.             if ($schoolAbsenceAndDelayNotification->getEstablishment() === $this) {
  3045.                 $schoolAbsenceAndDelayNotification->setEstablishment(null);
  3046.             }
  3047.         }
  3048.         return $this;
  3049.     }
  3050.     /**
  3051.      * @return Collection|SchoolAbsenceAndDelayNotificationLine[]
  3052.      */
  3053.     public function getSchoolAbsenceAndDelayNotificationLines(): Collection
  3054.     {
  3055.         return $this->schoolAbsenceAndDelayNotificationLines;
  3056.     }
  3057.     public function addSchoolAbsenceAndDelayNotificationLine(SchoolAbsenceAndDelayNotificationLine $schoolAbsenceAndDelayNotificationLine): self
  3058.     {
  3059.         if (!$this->schoolAbsenceAndDelayNotificationLines->contains($schoolAbsenceAndDelayNotificationLine)) {
  3060.             $this->schoolAbsenceAndDelayNotificationLines[] = $schoolAbsenceAndDelayNotificationLine;
  3061.             $schoolAbsenceAndDelayNotificationLine->setEstablishment($this);
  3062.         }
  3063.         return $this;
  3064.     }
  3065.     public function removeSchoolAbsenceAndDelayNotificationLine(SchoolAbsenceAndDelayNotificationLine $schoolAbsenceAndDelayNotificationLine): self
  3066.     {
  3067.         if ($this->schoolAbsenceAndDelayNotificationLines->removeElement($schoolAbsenceAndDelayNotificationLine)) {
  3068.             // set the owning side to null (unless already changed)
  3069.             if ($schoolAbsenceAndDelayNotificationLine->getEstablishment() === $this) {
  3070.                 $schoolAbsenceAndDelayNotificationLine->setEstablishment(null);
  3071.             }
  3072.         }
  3073.         return $this;
  3074.     }
  3075.     /**
  3076.      * @return Collection|SchoolAbsenceAndDelaySetting[]
  3077.      */
  3078.     public function getSchoolAbsenceAndDelaySettings(): Collection
  3079.     {
  3080.         return $this->schoolAbsenceAndDelaySettings;
  3081.     }
  3082.     public function addSchoolAbsenceAndDelaySetting(SchoolAbsenceAndDelaySetting $schoolAbsenceAndDelaySetting): self
  3083.     {
  3084.         if (!$this->schoolAbsenceAndDelaySettings->contains($schoolAbsenceAndDelaySetting)) {
  3085.             $this->schoolAbsenceAndDelaySettings[] = $schoolAbsenceAndDelaySetting;
  3086.             $schoolAbsenceAndDelaySetting->setEstablishment($this);
  3087.         }
  3088.         return $this;
  3089.     }
  3090.     public function removeSchoolAbsenceAndDelaySetting(SchoolAbsenceAndDelaySetting $schoolAbsenceAndDelaySetting): self
  3091.     {
  3092.         if ($this->schoolAbsenceAndDelaySettings->removeElement($schoolAbsenceAndDelaySetting)) {
  3093.             // set the owning side to null (unless already changed)
  3094.             if ($schoolAbsenceAndDelaySetting->getEstablishment() === $this) {
  3095.                 $schoolAbsenceAndDelaySetting->setEstablishment(null);
  3096.             }
  3097.         }
  3098.         return $this;
  3099.     }
  3100.     /**
  3101.      * @return Collection|SchoolAbsenceAndDelayReportCardNotification[]
  3102.      */
  3103.     public function getSchoolAbsenceAndDelayReportCardNotifications(): Collection
  3104.     {
  3105.         return $this->schoolAbsenceAndDelayReportCardNotifications;
  3106.     }
  3107.     public function addSchoolAbsenceAndDelayReportCardNotification(SchoolAbsenceAndDelayReportCardNotification $schoolAbsenceAndDelayReportCardNotification): self
  3108.     {
  3109.         if (!$this->schoolAbsenceAndDelayReportCardNotifications->contains($schoolAbsenceAndDelayReportCardNotification)) {
  3110.             $this->schoolAbsenceAndDelayReportCardNotifications[] = $schoolAbsenceAndDelayReportCardNotification;
  3111.             $schoolAbsenceAndDelayReportCardNotification->setEstablishment($this);
  3112.         }
  3113.         return $this;
  3114.     }
  3115.     public function removeSchoolAbsenceAndDelayReportCardNotification(SchoolAbsenceAndDelayReportCardNotification $schoolAbsenceAndDelayReportCardNotification): self
  3116.     {
  3117.         if ($this->schoolAbsenceAndDelayReportCardNotifications->removeElement($schoolAbsenceAndDelayReportCardNotification)) {
  3118.             // set the owning side to null (unless already changed)
  3119.             if ($schoolAbsenceAndDelayReportCardNotification->getEstablishment() === $this) {
  3120.                 $schoolAbsenceAndDelayReportCardNotification->setEstablishment(null);
  3121.             }
  3122.         }
  3123.         return $this;
  3124.     }
  3125.     /**
  3126.      * @return Collection|SchoolAbsenceAndDelayReportCardNotificationLine[]
  3127.      */
  3128.     public function getSchoolAbsenceAndDelayReportCardNotificationLines(): Collection
  3129.     {
  3130.         return $this->schoolAbsenceAndDelayReportCardNotificationLines;
  3131.     }
  3132.     public function addSchoolAbsenceAndDelayReportCardNotificationLine(SchoolAbsenceAndDelayReportCardNotificationLine $schoolAbsenceAndDelayReportCardNotificationLine): self
  3133.     {
  3134.         if (!$this->schoolAbsenceAndDelayReportCardNotificationLines->contains($schoolAbsenceAndDelayReportCardNotificationLine)) {
  3135.             $this->schoolAbsenceAndDelayReportCardNotificationLines[] = $schoolAbsenceAndDelayReportCardNotificationLine;
  3136.             $schoolAbsenceAndDelayReportCardNotificationLine->setEstablishment($this);
  3137.         }
  3138.         return $this;
  3139.     }
  3140.     public function removeSchoolAbsenceAndDelayReportCardNotificationLine(SchoolAbsenceAndDelayReportCardNotificationLine $schoolAbsenceAndDelayReportCardNotificationLine): self
  3141.     {
  3142.         if ($this->schoolAbsenceAndDelayReportCardNotificationLines->removeElement($schoolAbsenceAndDelayReportCardNotificationLine)) {
  3143.             // set the owning side to null (unless already changed)
  3144.             if ($schoolAbsenceAndDelayReportCardNotificationLine->getEstablishment() === $this) {
  3145.                 $schoolAbsenceAndDelayReportCardNotificationLine->setEstablishment(null);
  3146.             }
  3147.         }
  3148.         return $this;
  3149.     }
  3150.     /**
  3151.      * @return Collection|SettingLearningDifficulty[]
  3152.      */
  3153.     public function getSettingLearningDifficulties(): Collection
  3154.     {
  3155.         return $this->settingLearningDifficulties;
  3156.     }
  3157.     public function addSettingLearningDifficulty(SettingLearningDifficulty $settingLearningDifficulty): self
  3158.     {
  3159.         if (!$this->settingLearningDifficulties->contains($settingLearningDifficulty)) {
  3160.             $this->settingLearningDifficulties[] = $settingLearningDifficulty;
  3161.             $settingLearningDifficulty->setEstablishment($this);
  3162.         }
  3163.         return $this;
  3164.     }
  3165.     public function removeSettingLearningDifficulty(SettingLearningDifficulty $settingLearningDifficulty): self
  3166.     {
  3167.         if ($this->settingLearningDifficulties->removeElement($settingLearningDifficulty)) {
  3168.             // set the owning side to null (unless already changed)
  3169.             if ($settingLearningDifficulty->getEstablishment() === $this) {
  3170.                 $settingLearningDifficulty->setEstablishment(null);
  3171.             }
  3172.         }
  3173.         return $this;
  3174.     }
  3175.     /**
  3176.      * @return Collection|User[]
  3177.      */
  3178.     public function getAccessUsers(): Collection
  3179.     {
  3180.         return $this->accessUsers;
  3181.     }
  3182.     public function addAccessUser(User $accessUser): self
  3183.     {
  3184.         if (!$this->accessUsers->contains($accessUser)) {
  3185.             $this->accessUsers[] = $accessUser;
  3186.             $accessUser->addEstablishment($this);
  3187.         }
  3188.         return $this;
  3189.     }
  3190.     public function removeAccessUser(User $accessUser): self
  3191.     {
  3192.         if ($this->accessUsers->removeElement($accessUser)) {
  3193.             $accessUser->removeEstablishment($this);
  3194.         }
  3195.         return $this;
  3196.     }
  3197.     /**
  3198.      * @return Collection|RhStatut[]
  3199.      */
  3200.     public function getRhStatuts(): Collection
  3201.     {
  3202.         return $this->rhStatuts;
  3203.     }
  3204.     public function addRhStatut(RhStatut $rhStatut): self
  3205.     {
  3206.         if (!$this->rhStatuts->contains($rhStatut)) {
  3207.             $this->rhStatuts[] = $rhStatut;
  3208.             $rhStatut->setEstablishment($this);
  3209.         }
  3210.         return $this;
  3211.     }
  3212.     public function removeRhStatut(RhStatut $rhStatut): self
  3213.     {
  3214.         if ($this->rhStatuts->removeElement($rhStatut)) {
  3215.             // set the owning side to null (unless already changed)
  3216.             if ($rhStatut->getEstablishment() === $this) {
  3217.                 $rhStatut->setEstablishment(null);
  3218.             }
  3219.         }
  3220.         return $this;
  3221.     }
  3222.     /**
  3223.      * @return Collection|CommunicationPredefinedMessage[]
  3224.      */
  3225.     public function getCommunicationPredefinedMessages(): Collection
  3226.     {
  3227.         return $this->communicationPredefinedMessages;
  3228.     }
  3229.     public function addCommunicationPredefinedMessage(CommunicationPredefinedMessage $communicationPredefinedMessage): self
  3230.     {
  3231.         if (!$this->communicationPredefinedMessages->contains($communicationPredefinedMessage)) {
  3232.             $this->communicationPredefinedMessages[] = $communicationPredefinedMessage;
  3233.             $communicationPredefinedMessage->setEstablishment($this);
  3234.         }
  3235.         return $this;
  3236.     }
  3237.     public function removeCommunicationPredefinedMessage(CommunicationPredefinedMessage $communicationPredefinedMessage): self
  3238.     {
  3239.         if ($this->communicationPredefinedMessages->removeElement($communicationPredefinedMessage)) {
  3240.             // set the owning side to null (unless already changed)
  3241.             if ($communicationPredefinedMessage->getEstablishment() === $this) {
  3242.                 $communicationPredefinedMessage->setEstablishment(null);
  3243.             }
  3244.         }
  3245.         return $this;
  3246.     }
  3247.     /**
  3248.      * @return Collection|SchoolTeacher[]
  3249.      */
  3250.     public function getSchoolTeachers(): Collection
  3251.     {
  3252.         return $this->schoolTeachers;
  3253.     }
  3254.     public function addSchoolTeacher(SchoolTeacher $schoolTeacher): self
  3255.     {
  3256.         if (!$this->schoolTeachers->contains($schoolTeacher)) {
  3257.             $this->schoolTeachers[] = $schoolTeacher;
  3258.             $schoolTeacher->setEstablishment($this);
  3259.         }
  3260.         return $this;
  3261.     }
  3262.     public function removeSchoolTeacher(SchoolTeacher $schoolTeacher): self
  3263.     {
  3264.         if ($this->schoolTeachers->removeElement($schoolTeacher)) {
  3265.             // set the owning side to null (unless already changed)
  3266.             if ($schoolTeacher->getEstablishment() === $this) {
  3267.                 $schoolTeacher->setEstablishment(null);
  3268.             }
  3269.         }
  3270.         return $this;
  3271.     }
  3272.     /**
  3273.      * @return Collection|StockProduct[]
  3274.      */
  3275.     public function getStockProducts(): Collection
  3276.     {
  3277.         return $this->stockProducts;
  3278.     }
  3279.     public function addStockProduct(StockProduct $stockProduct): self
  3280.     {
  3281.         if (!$this->stockProducts->contains($stockProduct)) {
  3282.             $this->stockProducts[] = $stockProduct;
  3283.             $stockProduct->setEstablishment($this);
  3284.         }
  3285.         return $this;
  3286.     }
  3287.     public function removeStockProduct(StockProduct $stockProduct): self
  3288.     {
  3289.         if ($this->stockProducts->removeElement($stockProduct)) {
  3290.             // set the owning side to null (unless already changed)
  3291.             if ($stockProduct->getEstablishment() === $this) {
  3292.                 $stockProduct->setEstablishment(null);
  3293.             }
  3294.         }
  3295.         return $this;
  3296.     }
  3297.     /**
  3298.      * @return Collection|StockKitCategory[]
  3299.      */
  3300.     public function getStockKitCategories(): Collection
  3301.     {
  3302.         return $this->stockKitCategories;
  3303.     }
  3304.     public function addStockKitCategory(StockKitCategory $stockKitCategory): self
  3305.     {
  3306.         if (!$this->stockKitCategories->contains($stockKitCategory)) {
  3307.             $this->stockKitCategories[] = $stockKitCategory;
  3308.             $stockKitCategory->setEstablishment($this);
  3309.         }
  3310.         return $this;
  3311.     }
  3312.     public function removeStockKitCategory(StockKitCategory $stockKitCategory): self
  3313.     {
  3314.         if ($this->stockKitCategories->removeElement($stockKitCategory)) {
  3315.             // set the owning side to null (unless already changed)
  3316.             if ($stockKitCategory->getEstablishment() === $this) {
  3317.                 $stockKitCategory->setEstablishment(null);
  3318.             }
  3319.         }
  3320.         return $this;
  3321.     }
  3322.     /**
  3323.      * @return Collection|StockKitProduct[]
  3324.      */
  3325.     public function getStockKitProducts(): Collection
  3326.     {
  3327.         return $this->stockKitProducts;
  3328.     }
  3329.     public function addStockKitProduct(StockKitProduct $stockKitProduct): self
  3330.     {
  3331.         if (!$this->stockKitProducts->contains($stockKitProduct)) {
  3332.             $this->stockKitProducts[] = $stockKitProduct;
  3333.             $stockKitProduct->setEstablishment($this);
  3334.         }
  3335.         return $this;
  3336.     }
  3337.     public function removeStockKitProduct(StockKitProduct $stockKitProduct): self
  3338.     {
  3339.         if ($this->stockKitProducts->removeElement($stockKitProduct)) {
  3340.             // set the owning side to null (unless already changed)
  3341.             if ($stockKitProduct->getEstablishment() === $this) {
  3342.                 $stockKitProduct->setEstablishment(null);
  3343.             }
  3344.         }
  3345.         return $this;
  3346.     }
  3347.     /**
  3348.      * @return Collection|StockProductEntry[]
  3349.      */
  3350.     public function getStockProductEntries(): Collection
  3351.     {
  3352.         return $this->stockProductEntries;
  3353.     }
  3354.     public function addStockProductEntry(StockProductEntry $stockProductEntry): self
  3355.     {
  3356.         if (!$this->stockProductEntries->contains($stockProductEntry)) {
  3357.             $this->stockProductEntries[] = $stockProductEntry;
  3358.             $stockProductEntry->setEstablishment($this);
  3359.         }
  3360.         return $this;
  3361.     }
  3362.     public function removeStockProductEntry(StockProductEntry $stockProductEntry): self
  3363.     {
  3364.         if ($this->stockProductEntries->removeElement($stockProductEntry)) {
  3365.             // set the owning side to null (unless already changed)
  3366.             if ($stockProductEntry->getEstablishment() === $this) {
  3367.                 $stockProductEntry->setEstablishment(null);
  3368.             }
  3369.         }
  3370.         return $this;
  3371.     }
  3372.     /**
  3373.      * @return Collection|StockProductEntryLine[]
  3374.      */
  3375.     public function getStockProductEntryLines(): Collection
  3376.     {
  3377.         return $this->stockProductEntryLines;
  3378.     }
  3379.     public function addStockProductEntryLine(StockProductEntryLine $stockProductEntryLine): self
  3380.     {
  3381.         if (!$this->stockProductEntryLines->contains($stockProductEntryLine)) {
  3382.             $this->stockProductEntryLines[] = $stockProductEntryLine;
  3383.             $stockProductEntryLine->setEstablishment($this);
  3384.         }
  3385.         return $this;
  3386.     }
  3387.     public function removeStockProductEntryLine(StockProductEntryLine $stockProductEntryLine): self
  3388.     {
  3389.         if ($this->stockProductEntryLines->removeElement($stockProductEntryLine)) {
  3390.             // set the owning side to null (unless already changed)
  3391.             if ($stockProductEntryLine->getEstablishment() === $this) {
  3392.                 $stockProductEntryLine->setEstablishment(null);
  3393.             }
  3394.         }
  3395.         return $this;
  3396.     }
  3397.     /**
  3398.      * @return Collection|StockProviderKitEntry[]
  3399.      */
  3400.     public function getStockProviderKitEntries(): Collection
  3401.     {
  3402.         return $this->stockProviderKitEntries;
  3403.     }
  3404.     public function addStockProviderKitEntry(StockProviderKitEntry $stockProviderKitEntry): self
  3405.     {
  3406.         if (!$this->stockProviderKitEntries->contains($stockProviderKitEntry)) {
  3407.             $this->stockProviderKitEntries[] = $stockProviderKitEntry;
  3408.             $stockProviderKitEntry->setEstablishment($this);
  3409.         }
  3410.         return $this;
  3411.     }
  3412.     public function removeStockProviderKitEntry(StockProviderKitEntry $stockProviderKitEntry): self
  3413.     {
  3414.         if ($this->stockProviderKitEntries->removeElement($stockProviderKitEntry)) {
  3415.             // set the owning side to null (unless already changed)
  3416.             if ($stockProviderKitEntry->getEstablishment() === $this) {
  3417.                 $stockProviderKitEntry->setEstablishment(null);
  3418.             }
  3419.         }
  3420.         return $this;
  3421.     }
  3422.     /**
  3423.      * @return Collection|StockProviderKitEntryLine[]
  3424.      */
  3425.     public function getStockProviderKitEntryLines(): Collection
  3426.     {
  3427.         return $this->stockProviderKitEntryLines;
  3428.     }
  3429.     public function addStockProviderKitEntryLine(StockProviderKitEntryLine $stockProviderKitEntryLine): self
  3430.     {
  3431.         if (!$this->stockProviderKitEntryLines->contains($stockProviderKitEntryLine)) {
  3432.             $this->stockProviderKitEntryLines[] = $stockProviderKitEntryLine;
  3433.             $stockProviderKitEntryLine->setEstablishment($this);
  3434.         }
  3435.         return $this;
  3436.     }
  3437.     public function removeStockProviderKitEntryLine(StockProviderKitEntryLine $stockProviderKitEntryLine): self
  3438.     {
  3439.         if ($this->stockProviderKitEntryLines->removeElement($stockProviderKitEntryLine)) {
  3440.             // set the owning side to null (unless already changed)
  3441.             if ($stockProviderKitEntryLine->getEstablishment() === $this) {
  3442.                 $stockProviderKitEntryLine->setEstablishment(null);
  3443.             }
  3444.         }
  3445.         return $this;
  3446.     }
  3447.     /**
  3448.      * @return Collection|StockStudentKitEntry[]
  3449.      */
  3450.     public function getStockStudentKitEntries(): Collection
  3451.     {
  3452.         return $this->stockStudentKitEntries;
  3453.     }
  3454.     public function addStockStudentKitEntry(StockStudentKitEntry $stockStudentKitEntry): self
  3455.     {
  3456.         if (!$this->stockStudentKitEntries->contains($stockStudentKitEntry)) {
  3457.             $this->stockStudentKitEntries[] = $stockStudentKitEntry;
  3458.             $stockStudentKitEntry->setEstablishment($this);
  3459.         }
  3460.         return $this;
  3461.     }
  3462.     public function removeStockStudentKitEntry(StockStudentKitEntry $stockStudentKitEntry): self
  3463.     {
  3464.         if ($this->stockStudentKitEntries->removeElement($stockStudentKitEntry)) {
  3465.             // set the owning side to null (unless already changed)
  3466.             if ($stockStudentKitEntry->getEstablishment() === $this) {
  3467.                 $stockStudentKitEntry->setEstablishment(null);
  3468.             }
  3469.         }
  3470.         return $this;
  3471.     }
  3472.     /**
  3473.      * @return Collection|StockStudentKitEntryLine[]
  3474.      */
  3475.     public function getStockStudentKitEntryLines(): Collection
  3476.     {
  3477.         return $this->stockStudentKitEntryLines;
  3478.     }
  3479.     public function addStockStudentKitEntryLine(StockStudentKitEntryLine $stockStudentKitEntryLine): self
  3480.     {
  3481.         if (!$this->stockStudentKitEntryLines->contains($stockStudentKitEntryLine)) {
  3482.             $this->stockStudentKitEntryLines[] = $stockStudentKitEntryLine;
  3483.             $stockStudentKitEntryLine->setEstablishment($this);
  3484.         }
  3485.         return $this;
  3486.     }
  3487.     public function removeStockStudentKitEntryLine(StockStudentKitEntryLine $stockStudentKitEntryLine): self
  3488.     {
  3489.         if ($this->stockStudentKitEntryLines->removeElement($stockStudentKitEntryLine)) {
  3490.             // set the owning side to null (unless already changed)
  3491.             if ($stockStudentKitEntryLine->getEstablishment() === $this) {
  3492.                 $stockStudentKitEntryLine->setEstablishment(null);
  3493.             }
  3494.         }
  3495.         return $this;
  3496.     }
  3497.     /**
  3498.      * @return Collection|StockKitOut[]
  3499.      */
  3500.     public function getStockKitOuts(): Collection
  3501.     {
  3502.         return $this->stockKitOuts;
  3503.     }
  3504.     public function addStockKitOut(StockKitOut $stockKitOut): self
  3505.     {
  3506.         if (!$this->stockKitOuts->contains($stockKitOut)) {
  3507.             $this->stockKitOuts[] = $stockKitOut;
  3508.             $stockKitOut->setEstablishment($this);
  3509.         }
  3510.         return $this;
  3511.     }
  3512.     public function removeStockKitOut(StockKitOut $stockKitOut): self
  3513.     {
  3514.         if ($this->stockKitOuts->removeElement($stockKitOut)) {
  3515.             // set the owning side to null (unless already changed)
  3516.             if ($stockKitOut->getEstablishment() === $this) {
  3517.                 $stockKitOut->setEstablishment(null);
  3518.             }
  3519.         }
  3520.         return $this;
  3521.     }
  3522.     /**
  3523.      * @return Collection|StockKitOutLine[]
  3524.      */
  3525.     public function getStockKitOutLines(): Collection
  3526.     {
  3527.         return $this->stockKitOutLines;
  3528.     }
  3529.     public function addStockKitOutLine(StockKitOutLine $stockKitOutLine): self
  3530.     {
  3531.         if (!$this->stockKitOutLines->contains($stockKitOutLine)) {
  3532.             $this->stockKitOutLines[] = $stockKitOutLine;
  3533.             $stockKitOutLine->setEstablishment($this);
  3534.         }
  3535.         return $this;
  3536.     }
  3537.     public function removeStockKitOutLine(StockKitOutLine $stockKitOutLine): self
  3538.     {
  3539.         if ($this->stockKitOutLines->removeElement($stockKitOutLine)) {
  3540.             // set the owning side to null (unless already changed)
  3541.             if ($stockKitOutLine->getEstablishment() === $this) {
  3542.                 $stockKitOutLine->setEstablishment(null);
  3543.             }
  3544.         }
  3545.         return $this;
  3546.     }
  3547.     /**
  3548.      * @return Collection|StockProductOut[]
  3549.      */
  3550.     public function getStockProductOuts(): Collection
  3551.     {
  3552.         return $this->stockProductOuts;
  3553.     }
  3554.     public function addStockProductOut(StockProductOut $stockProductOut): self
  3555.     {
  3556.         if (!$this->stockProductOuts->contains($stockProductOut)) {
  3557.             $this->stockProductOuts[] = $stockProductOut;
  3558.             $stockProductOut->setEstablishment($this);
  3559.         }
  3560.         return $this;
  3561.     }
  3562.     public function removeStockProductOut(StockProductOut $stockProductOut): self
  3563.     {
  3564.         if ($this->stockProductOuts->removeElement($stockProductOut)) {
  3565.             // set the owning side to null (unless already changed)
  3566.             if ($stockProductOut->getEstablishment() === $this) {
  3567.                 $stockProductOut->setEstablishment(null);
  3568.             }
  3569.         }
  3570.         return $this;
  3571.     }
  3572.     public function getSmsSender(): ?string
  3573.     {
  3574.         return $this->sms_sender;
  3575.     }
  3576.     public function setSmsSender(string $sms_sender): self
  3577.     {
  3578.         $this->sms_sender $sms_sender;
  3579.         return $this;
  3580.     }
  3581.     public function getSmsLogin(): ?string
  3582.     {
  3583.         return $this->sms_login;
  3584.     }
  3585.     public function setSmsLogin(string $sms_login): self
  3586.     {
  3587.         $this->sms_login $sms_login;
  3588.         return $this;
  3589.     }
  3590.     public function getSmsPassword(): ?string
  3591.     {
  3592.         return $this->sms_password;
  3593.     }
  3594.     public function setSmsPassword(string $sms_password): self
  3595.     {
  3596.         $this->sms_password $sms_password;
  3597.         return $this;
  3598.     }
  3599.     /**
  3600.      * @return Collection|XlsImportation[]
  3601.      */
  3602.     public function getXlsImportations(): Collection
  3603.     {
  3604.         return $this->xlsImportations;
  3605.     }
  3606.     public function addXlsImportation(XlsImportation $xlsImportation): self
  3607.     {
  3608.         if (!$this->xlsImportations->contains($xlsImportation)) {
  3609.             $this->xlsImportations[] = $xlsImportation;
  3610.             $xlsImportation->setEstablishment($this);
  3611.         }
  3612.         return $this;
  3613.     }
  3614.     public function removeXlsImportation(XlsImportation $xlsImportation): self
  3615.     {
  3616.         if ($this->xlsImportations->removeElement($xlsImportation)) {
  3617.             // set the owning side to null (unless already changed)
  3618.             if ($xlsImportation->getEstablishment() === $this) {
  3619.                 $xlsImportation->setEstablishment(null);
  3620.             }
  3621.         }
  3622.         return $this;
  3623.     }
  3624.     /**
  3625.      * @return Collection|AccountingCredit[]
  3626.      */
  3627.     public function getAccountingCredits(): Collection
  3628.     {
  3629.         return $this->accountingCredits;
  3630.     }
  3631.     public function addAccountingCredit(AccountingCredit $accountingCredit): self
  3632.     {
  3633.         if (!$this->accountingCredits->contains($accountingCredit)) {
  3634.             $this->accountingCredits[] = $accountingCredit;
  3635.             $accountingCredit->setEstablishment($this);
  3636.         }
  3637.         return $this;
  3638.     }
  3639.     public function removeAccountingCredit(AccountingCredit $accountingCredit): self
  3640.     {
  3641.         if ($this->accountingCredits->removeElement($accountingCredit)) {
  3642.             // set the owning side to null (unless already changed)
  3643.             if ($accountingCredit->getEstablishment() === $this) {
  3644.                 $accountingCredit->setEstablishment(null);
  3645.             }
  3646.         }
  3647.         return $this;
  3648.     }
  3649.     /**
  3650.      * @return Collection|AccountingCreditLine[]
  3651.      */
  3652.     public function getAccountingCreditLines(): Collection
  3653.     {
  3654.         return $this->accountingCreditLines;
  3655.     }
  3656.     public function addAccountingCreditLine(AccountingCreditLine $accountingCreditLine): self
  3657.     {
  3658.         if (!$this->accountingCreditLines->contains($accountingCreditLine)) {
  3659.             $this->accountingCreditLines[] = $accountingCreditLine;
  3660.             $accountingCreditLine->setEstablishment($this);
  3661.         }
  3662.         return $this;
  3663.     }
  3664.     public function removeAccountingCreditLine(AccountingCreditLine $accountingCreditLine): self
  3665.     {
  3666.         if ($this->accountingCreditLines->removeElement($accountingCreditLine)) {
  3667.             // set the owning side to null (unless already changed)
  3668.             if ($accountingCreditLine->getEstablishment() === $this) {
  3669.                 $accountingCreditLine->setEstablishment(null);
  3670.             }
  3671.         }
  3672.         return $this;
  3673.     }
  3674.     /**
  3675.      * @return Collection|SchoolAverage[]
  3676.      */
  3677.     public function getSchoolAverages(): Collection
  3678.     {
  3679.         return $this->schoolAverages;
  3680.     }
  3681.     public function addSchoolAverage(SchoolAverage $schoolAverage): self
  3682.     {
  3683.         if (!$this->schoolAverages->contains($schoolAverage)) {
  3684.             $this->schoolAverages[] = $schoolAverage;
  3685.             $schoolAverage->setEstablishment($this);
  3686.         }
  3687.         return $this;
  3688.     }
  3689.     public function removeSchoolAverage(SchoolAverage $schoolAverage): self
  3690.     {
  3691.         if ($this->schoolAverages->removeElement($schoolAverage)) {
  3692.             // set the owning side to null (unless already changed)
  3693.             if ($schoolAverage->getEstablishment() === $this) {
  3694.                 $schoolAverage->setEstablishment(null);
  3695.             }
  3696.         }
  3697.         return $this;
  3698.     }
  3699.     /**
  3700.      * @return Collection|SchoolStudentAverage[]
  3701.      */
  3702.     public function getSchoolStudentAverages(): Collection
  3703.     {
  3704.         return $this->schoolStudentAverages;
  3705.     }
  3706.     public function addSchoolStudentAverage(SchoolStudentAverage $schoolStudentAverage): self
  3707.     {
  3708.         if (!$this->schoolStudentAverages->contains($schoolStudentAverage)) {
  3709.             $this->schoolStudentAverages[] = $schoolStudentAverage;
  3710.             $schoolStudentAverage->setEstablishment($this);
  3711.         }
  3712.         return $this;
  3713.     }
  3714.     public function removeSchoolStudentAverage(SchoolStudentAverage $schoolStudentAverage): self
  3715.     {
  3716.         if ($this->schoolStudentAverages->removeElement($schoolStudentAverage)) {
  3717.             // set the owning side to null (unless already changed)
  3718.             if ($schoolStudentAverage->getEstablishment() === $this) {
  3719.                 $schoolStudentAverage->setEstablishment(null);
  3720.             }
  3721.         }
  3722.         return $this;
  3723.     }
  3724.     public function getCity(): ?string
  3725.     {
  3726.         return $this->city;
  3727.     }
  3728.     public function setCity(?string $city): self
  3729.     {
  3730.         $this->city $city;
  3731.         return $this;
  3732.     }
  3733.     /**
  3734.      * @return Collection|SchoolCertificate[]
  3735.      */
  3736.     public function getSchoolCertificates(): Collection
  3737.     {
  3738.         return $this->schoolCertificates;
  3739.     }
  3740.     public function addSchoolCertificate(SchoolCertificate $schoolCertificate): self
  3741.     {
  3742.         if (!$this->schoolCertificates->contains($schoolCertificate)) {
  3743.             $this->schoolCertificates[] = $schoolCertificate;
  3744.             $schoolCertificate->setEstablishment($this);
  3745.         }
  3746.         return $this;
  3747.     }
  3748.     public function removeSchoolCertificate(SchoolCertificate $schoolCertificate): self
  3749.     {
  3750.         if ($this->schoolCertificates->removeElement($schoolCertificate)) {
  3751.             // set the owning side to null (unless already changed)
  3752.             if ($schoolCertificate->getEstablishment() === $this) {
  3753.                 $schoolCertificate->setEstablishment(null);
  3754.             }
  3755.         }
  3756.         return $this;
  3757.     }
  3758.     /**
  3759.      * @return Collection|SchoolCertificateLine[]
  3760.      */
  3761.     public function getSchoolCertificateLines(): Collection
  3762.     {
  3763.         return $this->schoolCertificateLines;
  3764.     }
  3765.     public function addSchoolCertificateLine(SchoolCertificateLine $schoolCertificateLine): self
  3766.     {
  3767.         if (!$this->schoolCertificateLines->contains($schoolCertificateLine)) {
  3768.             $this->schoolCertificateLines[] = $schoolCertificateLine;
  3769.             $schoolCertificateLine->setEstablishment($this);
  3770.         }
  3771.         return $this;
  3772.     }
  3773.     public function removeSchoolCertificateLine(SchoolCertificateLine $schoolCertificateLine): self
  3774.     {
  3775.         if ($this->schoolCertificateLines->removeElement($schoolCertificateLine)) {
  3776.             // set the owning side to null (unless already changed)
  3777.             if ($schoolCertificateLine->getEstablishment() === $this) {
  3778.                 $schoolCertificateLine->setEstablishment(null);
  3779.             }
  3780.         }
  3781.         return $this;
  3782.     }
  3783.     /**
  3784.      * @return Collection|NurseryTimeSheet[]
  3785.      */
  3786.     public function getNurseryTimeSheets(): Collection
  3787.     {
  3788.         return $this->nurseryTimeSheets;
  3789.     }
  3790.     public function addNurseryTimeSheet(NurseryTimeSheet $nurseryTimeSheet): self
  3791.     {
  3792.         if (!$this->nurseryTimeSheets->contains($nurseryTimeSheet)) {
  3793.             $this->nurseryTimeSheets[] = $nurseryTimeSheet;
  3794.             $nurseryTimeSheet->setEstablishment($this);
  3795.         }
  3796.         return $this;
  3797.     }
  3798.     public function removeNurseryTimeSheet(NurseryTimeSheet $nurseryTimeSheet): self
  3799.     {
  3800.         if ($this->nurseryTimeSheets->removeElement($nurseryTimeSheet)) {
  3801.             // set the owning side to null (unless already changed)
  3802.             if ($nurseryTimeSheet->getEstablishment() === $this) {
  3803.                 $nurseryTimeSheet->setEstablishment(null);
  3804.             }
  3805.         }
  3806.         return $this;
  3807.     }
  3808.     public function getStamp(): ?string
  3809.     {
  3810.         return $this->stamp;
  3811.     }
  3812.     public function setStamp(?string $stamp): self
  3813.     {
  3814.         $this->stamp $stamp;
  3815.         return $this;
  3816.     }
  3817.     public function getBadgeColor(): ?string
  3818.     {
  3819.         return $this->badge_color;
  3820.     }
  3821.     public function setBadgeColor(?string $badge_color): self
  3822.     {
  3823.         $this->badge_color $badge_color;
  3824.         return $this;
  3825.     }
  3826.     /**
  3827.      * @return Collection|SettingRoom[]
  3828.      */
  3829.     public function getSettingRooms(): Collection
  3830.     {
  3831.         return $this->settingRooms;
  3832.     }
  3833.     public function addSettingRoom(SettingRoom $settingRoom): self
  3834.     {
  3835.         if (!$this->settingRooms->contains($settingRoom)) {
  3836.             $this->settingRooms[] = $settingRoom;
  3837.             $settingRoom->setEstablishment($this);
  3838.         }
  3839.         return $this;
  3840.     }
  3841.     public function removeSettingRoom(SettingRoom $settingRoom): self
  3842.     {
  3843.         if ($this->settingRooms->removeElement($settingRoom)) {
  3844.             // set the owning side to null (unless already changed)
  3845.             if ($settingRoom->getEstablishment() === $this) {
  3846.                 $settingRoom->setEstablishment(null);
  3847.             }
  3848.         }
  3849.         return $this;
  3850.     }
  3851.     /**
  3852.      * @return Collection|SettingTimeTable[]
  3853.      */
  3854.     public function getSettingTimeTables(): Collection
  3855.     {
  3856.         return $this->settingTimeTables;
  3857.     }
  3858.     public function addSettingTimeTable(SettingTimeTable $settingTimeTable): self
  3859.     {
  3860.         if (!$this->settingTimeTables->contains($settingTimeTable)) {
  3861.             $this->settingTimeTables[] = $settingTimeTable;
  3862.             $settingTimeTable->setEstablishment($this);
  3863.         }
  3864.         return $this;
  3865.     }
  3866.     public function removeSettingTimeTable(SettingTimeTable $settingTimeTable): self
  3867.     {
  3868.         if ($this->settingTimeTables->removeElement($settingTimeTable)) {
  3869.             // set the owning side to null (unless already changed)
  3870.             if ($settingTimeTable->getEstablishment() === $this) {
  3871.                 $settingTimeTable->setEstablishment(null);
  3872.             }
  3873.         }
  3874.         return $this;
  3875.     }
  3876.     /**
  3877.      * @return Collection|SchoolWorkingTime[]
  3878.      */
  3879.     public function getSchoolWorkingTimes(): Collection
  3880.     {
  3881.         return $this->schoolWorkingTimes;
  3882.     }
  3883.     public function addSchoolWorkingTime(SchoolWorkingTime $schoolWorkingTime): self
  3884.     {
  3885.         if (!$this->schoolWorkingTimes->contains($schoolWorkingTime)) {
  3886.             $this->schoolWorkingTimes[] = $schoolWorkingTime;
  3887.             $schoolWorkingTime->setEstablishment($this);
  3888.         }
  3889.         return $this;
  3890.     }
  3891.     public function removeSchoolWorkingTime(SchoolWorkingTime $schoolWorkingTime): self
  3892.     {
  3893.         if ($this->schoolWorkingTimes->removeElement($schoolWorkingTime)) {
  3894.             // set the owning side to null (unless already changed)
  3895.             if ($schoolWorkingTime->getEstablishment() === $this) {
  3896.                 $schoolWorkingTime->setEstablishment(null);
  3897.             }
  3898.         }
  3899.         return $this;
  3900.     }
  3901.     /**
  3902.      * @return Collection|SchoolWorkingTimeHourLesson[]
  3903.      */
  3904.     public function getSchoolWorkingTimeHourLessons(): Collection
  3905.     {
  3906.         return $this->schoolWorkingTimeHourLessons;
  3907.     }
  3908.     public function addSchoolWorkingTimeHourLesson(SchoolWorkingTimeHourLesson $schoolWorkingTimeHourLesson): self
  3909.     {
  3910.         if (!$this->schoolWorkingTimeHourLessons->contains($schoolWorkingTimeHourLesson)) {
  3911.             $this->schoolWorkingTimeHourLessons[] = $schoolWorkingTimeHourLesson;
  3912.             $schoolWorkingTimeHourLesson->setEstablishment($this);
  3913.         }
  3914.         return $this;
  3915.     }
  3916.     public function removeSchoolWorkingTimeHourLesson(SchoolWorkingTimeHourLesson $schoolWorkingTimeHourLesson): self
  3917.     {
  3918.         if ($this->schoolWorkingTimeHourLessons->removeElement($schoolWorkingTimeHourLesson)) {
  3919.             // set the owning side to null (unless already changed)
  3920.             if ($schoolWorkingTimeHourLesson->getEstablishment() === $this) {
  3921.                 $schoolWorkingTimeHourLesson->setEstablishment(null);
  3922.             }
  3923.         }
  3924.         return $this;
  3925.     }
  3926.     /**
  3927.      * @return Collection|MobileParentAppAccount[]
  3928.      */
  3929.     public function getMobileParentAppAccounts(): Collection
  3930.     {
  3931.         return $this->mobileParentAppAccounts;
  3932.     }
  3933.     public function addMobileParentAppAccount(MobileParentAppAccount $mobileParentAppAccount): self
  3934.     {
  3935.         if (!$this->mobileParentAppAccounts->contains($mobileParentAppAccount)) {
  3936.             $this->mobileParentAppAccounts[] = $mobileParentAppAccount;
  3937.             $mobileParentAppAccount->setEstablishment($this);
  3938.         }
  3939.         return $this;
  3940.     }
  3941.     public function removeMobileParentAppAccount(MobileParentAppAccount $mobileParentAppAccount): self
  3942.     {
  3943.         if ($this->mobileParentAppAccounts->removeElement($mobileParentAppAccount)) {
  3944.             // set the owning side to null (unless already changed)
  3945.             if ($mobileParentAppAccount->getEstablishment() === $this) {
  3946.                 $mobileParentAppAccount->setEstablishment(null);
  3947.             }
  3948.         }
  3949.         return $this;
  3950.     }
  3951.     /**
  3952.      * @return Collection|FoundingNotification[]
  3953.      */
  3954.     public function getFoundingNotifications(): Collection
  3955.     {
  3956.         return $this->foundingNotifications;
  3957.     }
  3958.     public function addFoundingNotification(FoundingNotification $foundingNotification): self
  3959.     {
  3960.         if (!$this->foundingNotifications->contains($foundingNotification)) {
  3961.             $this->foundingNotifications[] = $foundingNotification;
  3962.             $foundingNotification->setEstablishment($this);
  3963.         }
  3964.         return $this;
  3965.     }
  3966.     public function removeFoundingNotification(FoundingNotification $foundingNotification): self
  3967.     {
  3968.         if ($this->foundingNotifications->removeElement($foundingNotification)) {
  3969.             // set the owning side to null (unless already changed)
  3970.             if ($foundingNotification->getEstablishment() === $this) {
  3971.                 $foundingNotification->setEstablishment(null);
  3972.             }
  3973.         }
  3974.         return $this;
  3975.     }
  3976.     public function getSmsBankPayment(): ?string
  3977.     {
  3978.         return $this->sms_bank_payment;
  3979.     }
  3980.     public function setSmsBankPayment(?string $sms_bank_payment): self
  3981.     {
  3982.         $this->sms_bank_payment $sms_bank_payment;
  3983.         return $this;
  3984.     }
  3985.     /**
  3986.      * @return Collection|EquivalentMatter[]
  3987.      */
  3988.     public function getEquivalentMatters(): Collection
  3989.     {
  3990.         return $this->equivalentMatters;
  3991.     }
  3992.     public function addEquivalentMatter(EquivalentMatter $equivalentMatter): self
  3993.     {
  3994.         if (!$this->equivalentMatters->contains($equivalentMatter)) {
  3995.             $this->equivalentMatters[] = $equivalentMatter;
  3996.             $equivalentMatter->setEstablishment($this);
  3997.         }
  3998.         return $this;
  3999.     }
  4000.     public function removeEquivalentMatter(EquivalentMatter $equivalentMatter): self
  4001.     {
  4002.         if ($this->equivalentMatters->removeElement($equivalentMatter)) {
  4003.             // set the owning side to null (unless already changed)
  4004.             if ($equivalentMatter->getEstablishment() === $this) {
  4005.                 $equivalentMatter->setEstablishment(null);
  4006.             }
  4007.         }
  4008.         return $this;
  4009.     }
  4010.     /**
  4011.      * @return Collection|SchoolTeacherCallSheet[]
  4012.      */
  4013.     public function getSchoolTeacherCallSheets(): Collection
  4014.     {
  4015.         return $this->schoolTeacherCallSheets;
  4016.     }
  4017.     public function addSchoolTeacherCallSheet(SchoolTeacherCallSheet $schoolTeacherCallSheet): self
  4018.     {
  4019.         if (!$this->schoolTeacherCallSheets->contains($schoolTeacherCallSheet)) {
  4020.             $this->schoolTeacherCallSheets[] = $schoolTeacherCallSheet;
  4021.             $schoolTeacherCallSheet->setEstablishment($this);
  4022.         }
  4023.         return $this;
  4024.     }
  4025.     public function removeSchoolTeacherCallSheet(SchoolTeacherCallSheet $schoolTeacherCallSheet): self
  4026.     {
  4027.         if ($this->schoolTeacherCallSheets->removeElement($schoolTeacherCallSheet)) {
  4028.             // set the owning side to null (unless already changed)
  4029.             if ($schoolTeacherCallSheet->getEstablishment() === $this) {
  4030.                 $schoolTeacherCallSheet->setEstablishment(null);
  4031.             }
  4032.         }
  4033.         return $this;
  4034.     }
  4035.     /**
  4036.      * @return Collection|SchoolTeacherCallSheetLine[]
  4037.      */
  4038.     public function getSchoolTeacherCallSheetLines(): Collection
  4039.     {
  4040.         return $this->schoolTeacherCallSheetLines;
  4041.     }
  4042.     public function addSchoolTeacherCallSheetLine(SchoolTeacherCallSheetLine $schoolTeacherCallSheetLine): self
  4043.     {
  4044.         if (!$this->schoolTeacherCallSheetLines->contains($schoolTeacherCallSheetLine)) {
  4045.             $this->schoolTeacherCallSheetLines[] = $schoolTeacherCallSheetLine;
  4046.             $schoolTeacherCallSheetLine->setEstablishment($this);
  4047.         }
  4048.         return $this;
  4049.     }
  4050.     public function removeSchoolTeacherCallSheetLine(SchoolTeacherCallSheetLine $schoolTeacherCallSheetLine): self
  4051.     {
  4052.         if ($this->schoolTeacherCallSheetLines->removeElement($schoolTeacherCallSheetLine)) {
  4053.             // set the owning side to null (unless already changed)
  4054.             if ($schoolTeacherCallSheetLine->getEstablishment() === $this) {
  4055.                 $schoolTeacherCallSheetLine->setEstablishment(null);
  4056.             }
  4057.         }
  4058.         return $this;
  4059.     }
  4060.     /**
  4061.      * @return Collection|SchoolTeacherMatterClassroom[]
  4062.      */
  4063.     public function getSchoolTeacherMatterClassrooms(): Collection
  4064.     {
  4065.         return $this->schoolTeacherMatterClassrooms;
  4066.     }
  4067.     public function addSchoolTeacherMatterClassroom(SchoolTeacherMatterClassroom $schoolTeacherMatterClassroom): self
  4068.     {
  4069.         if (!$this->schoolTeacherMatterClassrooms->contains($schoolTeacherMatterClassroom)) {
  4070.             $this->schoolTeacherMatterClassrooms[] = $schoolTeacherMatterClassroom;
  4071.             $schoolTeacherMatterClassroom->setEstablishment($this);
  4072.         }
  4073.         return $this;
  4074.     }
  4075.     public function removeSchoolTeacherMatterClassroom(SchoolTeacherMatterClassroom $schoolTeacherMatterClassroom): self
  4076.     {
  4077.         if ($this->schoolTeacherMatterClassrooms->removeElement($schoolTeacherMatterClassroom)) {
  4078.             // set the owning side to null (unless already changed)
  4079.             if ($schoolTeacherMatterClassroom->getEstablishment() === $this) {
  4080.                 $schoolTeacherMatterClassroom->setEstablishment(null);
  4081.             }
  4082.         }
  4083.         return $this;
  4084.     }
  4085.     /**
  4086.      * @return Collection|RhSalarySalaryAccessory[]
  4087.      */
  4088.     public function getRhSalarySalaryAccessories(): Collection
  4089.     {
  4090.         return $this->rhSalarySalaryAccessories;
  4091.     }
  4092.     public function addRhSalarySalaryAccessory(RhSalarySalaryAccessory $rhSalarySalaryAccessory): self
  4093.     {
  4094.         if (!$this->rhSalarySalaryAccessories->contains($rhSalarySalaryAccessory)) {
  4095.             $this->rhSalarySalaryAccessories[] = $rhSalarySalaryAccessory;
  4096.             $rhSalarySalaryAccessory->setEstablishment($this);
  4097.         }
  4098.         return $this;
  4099.     }
  4100.     public function removeRhSalarySalaryAccessory(RhSalarySalaryAccessory $rhSalarySalaryAccessory): self
  4101.     {
  4102.         if ($this->rhSalarySalaryAccessories->removeElement($rhSalarySalaryAccessory)) {
  4103.             // set the owning side to null (unless already changed)
  4104.             if ($rhSalarySalaryAccessory->getEstablishment() === $this) {
  4105.                 $rhSalarySalaryAccessory->setEstablishment(null);
  4106.             }
  4107.         }
  4108.         return $this;
  4109.     }
  4110.     /**
  4111.      * @return Collection|RhSalaryPaySlipPayment[]
  4112.      */
  4113.     public function getRhSalaryPaySlipPayments(): Collection
  4114.     {
  4115.         return $this->rhSalaryPaySlipPayments;
  4116.     }
  4117.     public function addRhSalaryPaySlipPayment(RhSalaryPaySlipPayment $rhSalaryPaySlipPayment): self
  4118.     {
  4119.         if (!$this->rhSalaryPaySlipPayments->contains($rhSalaryPaySlipPayment)) {
  4120.             $this->rhSalaryPaySlipPayments[] = $rhSalaryPaySlipPayment;
  4121.             $rhSalaryPaySlipPayment->setEstablishment($this);
  4122.         }
  4123.         return $this;
  4124.     }
  4125.     public function removeRhSalaryPaySlipPayment(RhSalaryPaySlipPayment $rhSalaryPaySlipPayment): self
  4126.     {
  4127.         if ($this->rhSalaryPaySlipPayments->removeElement($rhSalaryPaySlipPayment)) {
  4128.             // set the owning side to null (unless already changed)
  4129.             if ($rhSalaryPaySlipPayment->getEstablishment() === $this) {
  4130.                 $rhSalaryPaySlipPayment->setEstablishment(null);
  4131.             }
  4132.         }
  4133.         return $this;
  4134.     }
  4135.     // repartition par age
  4136.     public function repartitionByLevelBirthday(SchoolYear $schoolYear$age$gender null$red null){
  4137.         $registereds = new ArrayCollection();
  4138.         foreach ($this->getSettingClassrooms() as $key => $settingClassroom) {
  4139.             foreach ($settingClassroom->getRegistrationStudentRegistrations() as $key => $studentRegistration) {
  4140.                 if ($studentRegistration->getSchoolYear() == $schoolYear) {
  4141.                     if (null == $red) {
  4142.                         if (null == $gender) {
  4143.                             if ($studentRegistration->getStudent()->getBirthday() != null) {
  4144.                                 if(SalaryManage::MyYearDiff($studentRegistration->getStudent()->getBirthday(), new DateTimeImmutable()) == $age){
  4145.                                     $registereds->add($studentRegistration);
  4146.                                 }
  4147.                             }
  4148.                         }else {
  4149.                             if ($studentRegistration->getStudent()->getGender() == $gender) {
  4150.                                 if ($studentRegistration->getStudent()->getBirthday() != null) {
  4151.                                     if(SalaryManage::MyYearDiff($studentRegistration->getStudent()->getBirthday(), new DateTimeImmutable()) == $age){
  4152.                                         $registereds->add($studentRegistration);
  4153.                                     }
  4154.                                 }
  4155.                             }
  4156.                         }
  4157.                     }else{
  4158.                         if ($studentRegistration->getIsRedoubling() == $red) {
  4159.                             if (null == $gender) {
  4160.                                 if ($studentRegistration->getStudent()->getBirthday() != null) {
  4161.                                     if(SalaryManage::MyYearDiff($studentRegistration->getStudent()->getBirthday(), new DateTimeImmutable()) == $age){
  4162.                                         $registereds->add($studentRegistration);
  4163.                                     }
  4164.                                 }
  4165.                             }else {
  4166.                                 if ($studentRegistration->getStudent()->getGender() == $gender) {
  4167.                                     if ($studentRegistration->getStudent()->getBirthday() != null) {
  4168.                                         if(SalaryManage::MyYearDiff($studentRegistration->getStudent()->getBirthday(), new DateTimeImmutable()) == $age){
  4169.                                             $registereds->add($studentRegistration);
  4170.                                         }
  4171.                                     }
  4172.                                 }
  4173.                             }
  4174.                         }
  4175.                     }
  4176.                 }
  4177.             }
  4178.         }
  4179.         return $registereds;
  4180.     }
  4181.     public function repartitionMinusByLevelBirthday(SchoolYear $schoolYear$age$gender null$red null){
  4182.         $registereds = new ArrayCollection();
  4183.         foreach ($this->getSettingClassrooms() as $key => $settingClassroom) {
  4184.             foreach ($settingClassroom->getRegistrationStudentRegistrations() as $key => $studentRegistration) {
  4185.                 if ($studentRegistration->getSchoolYear() == $schoolYear) {
  4186.                     if (null == $red) {
  4187.                         if (null == $gender) {
  4188.                             if ($studentRegistration->getStudent()->getBirthday() != null) {
  4189.                                 if(SalaryManage::MyYearDiff($studentRegistration->getStudent()->getBirthday(), new DateTimeImmutable()) < $age){
  4190.                                     $registereds->add($studentRegistration);
  4191.                                 }
  4192.                             }
  4193.                         }else {
  4194.                             if ($studentRegistration->getStudent()->getGender() == $gender) {
  4195.                                 if ($studentRegistration->getStudent()->getBirthday() != null) {
  4196.                                     if(SalaryManage::MyYearDiff($studentRegistration->getStudent()->getBirthday(), new DateTimeImmutable()) < $age){
  4197.                                         $registereds->add($studentRegistration);
  4198.                                     }
  4199.                                 }
  4200.                             }
  4201.                         }
  4202.                     }else{
  4203.                         if ($studentRegistration->getIsRedoubling() == $red) {
  4204.                             if (null == $gender) {
  4205.                                 if ($studentRegistration->getStudent()->getBirthday() != null) {
  4206.                                     if(SalaryManage::MyYearDiff($studentRegistration->getStudent()->getBirthday(), new DateTimeImmutable()) < $age){
  4207.                                         $registereds->add($studentRegistration);
  4208.                                     }
  4209.                                 }
  4210.                             }else {
  4211.                                 if ($studentRegistration->getStudent()->getGender() == $gender) {
  4212.                                     if ($studentRegistration->getStudent()->getBirthday() != null) {
  4213.                                         if(SalaryManage::MyYearDiff($studentRegistration->getStudent()->getBirthday(), new DateTimeImmutable()) < $age){
  4214.                                             $registereds->add($studentRegistration);
  4215.                                         }
  4216.                                     }
  4217.                                 }
  4218.                             }
  4219.                         }
  4220.                     }
  4221.                 }
  4222.             }
  4223.         }
  4224.         return $registereds;
  4225.     }
  4226.     public function repartitionPlusByLevelBirthday(SchoolYear $schoolYear$age$gender null$red null){
  4227.         $registereds = new ArrayCollection();
  4228.         foreach ($this->getSettingClassrooms() as $key => $settingClassroom) {
  4229.             foreach ($settingClassroom->getRegistrationStudentRegistrations() as $key => $studentRegistration) {
  4230.                 if ($studentRegistration->getSchoolYear() == $schoolYear) {
  4231.                     if (null == $red) {
  4232.                         if (null == $gender) {
  4233.                             if ($studentRegistration->getStudent()->getBirthday() != null) {
  4234.                                 if(SalaryManage::MyYearDiff($studentRegistration->getStudent()->getBirthday(), new DateTimeImmutable()) > $age){
  4235.                                     $registereds->add($studentRegistration);
  4236.                                 }
  4237.                             }
  4238.                         }else {
  4239.                             if ($studentRegistration->getStudent()->getGender() == $gender) {
  4240.                                 if ($studentRegistration->getStudent()->getBirthday() != null) {
  4241.                                     if(SalaryManage::MyYearDiff($studentRegistration->getStudent()->getBirthday(), new DateTimeImmutable()) > $age){
  4242.                                         $registereds->add($studentRegistration);
  4243.                                     }
  4244.                                 }
  4245.                             }
  4246.                         }
  4247.                     }else{
  4248.                         if ($studentRegistration->getIsRedoubling() == $red) {
  4249.                             if (null == $gender) {
  4250.                                 if ($studentRegistration->getStudent()->getBirthday() != null) {
  4251.                                     if(SalaryManage::MyYearDiff($studentRegistration->getStudent()->getBirthday(), new DateTimeImmutable()) > $age){
  4252.                                         $registereds->add($studentRegistration);
  4253.                                     }
  4254.                                 }
  4255.                             }else {
  4256.                                 if ($studentRegistration->getStudent()->getGender() == $gender) {
  4257.                                     if ($studentRegistration->getStudent()->getBirthday() != null) {
  4258.                                         if(SalaryManage::MyYearDiff($studentRegistration->getStudent()->getBirthday(), new DateTimeImmutable()) > $age){
  4259.                                             $registereds->add($studentRegistration);
  4260.                                         }
  4261.                                     }
  4262.                                 }
  4263.                             }
  4264.                         }
  4265.                     }
  4266.                 }
  4267.             }
  4268.         }
  4269.         return $registereds;
  4270.     }
  4271.     public function getDiet(SchoolYear $schoolYear$gender null){
  4272.         $registereds = new ArrayCollection();
  4273.         foreach ($this->getSettingClassrooms() as $key => $settingClassroom) {
  4274.             foreach ($settingClassroom->getRegistrationStudentRegistrations() as $key => $studentRegistration) {
  4275.                 if ($studentRegistration->getSchoolYear() == $schoolYear && $studentRegistration->getIsDiet()) {
  4276.                     if(null == $gender){
  4277.                         $registereds->add($studentRegistration);
  4278.                     }else{
  4279.                         if ($studentRegistration->getStudent()->getGender() == $gender) {
  4280.                             $registereds->add($studentRegistration);
  4281.                         }
  4282.                     }
  4283.                         
  4284.                 }
  4285.             }
  4286.         }
  4287.         return $registereds;
  4288.     }
  4289.     public function registeredByGender(SchoolYear $schoolYear$gender null$red null){
  4290.         $registereds = new ArrayCollection();
  4291.         foreach ($this->getSettingClassrooms() as $key => $settingClassroom) {
  4292.             foreach ($settingClassroom->getRegistrationStudentRegistrations() as $key => $studentRegistration) {
  4293.                 if ($studentRegistration->getSchoolYear() == $schoolYear) {
  4294.                     if(null == $red){
  4295.                         if(null == $gender){
  4296.                             $registereds->add($studentRegistration);
  4297.                         }else{
  4298.                             if ($studentRegistration->getStudent()->getGender() == $gender) {
  4299.                                 $registereds->add($studentRegistration);
  4300.                             }
  4301.                         }
  4302.                     }else{
  4303.                         if($red == $studentRegistration->getIsRedoubling()){
  4304.                             if(null == $gender){
  4305.                                 $registereds->add($studentRegistration);
  4306.                             }else{
  4307.                                 if ($studentRegistration->getStudent()->getGender() == $gender) {
  4308.                                     $registereds->add($studentRegistration);
  4309.                                 }
  4310.                             }
  4311.                         }
  4312.                     }
  4313.                 }
  4314.             }
  4315.         }
  4316.         return $registereds;
  4317.     }
  4318.     public function registeredIvByGender(SchoolYear $schoolYear$gender null$red null){
  4319.         $registereds = new ArrayCollection();
  4320.         foreach ($this->getSettingClassrooms() as $key => $settingClassroom) {
  4321.             foreach ($settingClassroom->getRegistrationStudentRegistrations() as $key => $studentRegistration) {
  4322.                 if ($studentRegistration->getSchoolYear() == $schoolYear) {
  4323.                     if(strtoupper(substr($studentRegistration->getStudent()->getNationality(), 02)) == 'IV'){
  4324.                         if(null == $red){
  4325.                             if(null == $gender){
  4326.                                 $registereds->add($studentRegistration);
  4327.                             }else{
  4328.                                 if ($studentRegistration->getStudent()->getGender() == $gender) {
  4329.                                     $registereds->add($studentRegistration);
  4330.                                 }
  4331.                             }
  4332.                         }else{
  4333.                             if($red == $studentRegistration->getIsRedoubling()){
  4334.                                 if(null == $gender){
  4335.                                     $registereds->add($studentRegistration);
  4336.                                 }else{
  4337.                                     if ($studentRegistration->getStudent()->getGender() == $gender) {
  4338.                                         $registereds->add($studentRegistration);
  4339.                                     }
  4340.                                 }
  4341.                             }
  4342.                         }
  4343.                     }
  4344.                 }
  4345.             }
  4346.         }
  4347.         return $registereds;
  4348.     }
  4349.     public function registeredEtByGender(SchoolYear $schoolYear$gender null$red null){
  4350.         $registereds = new ArrayCollection();
  4351.         foreach ($this->getSettingClassrooms() as $key => $settingClassroom) {
  4352.             foreach ($settingClassroom->getRegistrationStudentRegistrations() as $key => $studentRegistration) {
  4353.                 if ($studentRegistration->getSchoolYear() == $schoolYear) {
  4354.                     if(strtoupper(substr($studentRegistration->getStudent()->getNationality(), 02)) != 'IV'){
  4355.                         if(null == $red){
  4356.                             if(null == $gender){
  4357.                                 $registereds->add($studentRegistration);
  4358.                             }else{
  4359.                                 if ($studentRegistration->getStudent()->getGender() == $gender) {
  4360.                                     $registereds->add($studentRegistration);
  4361.                                 }
  4362.                             }
  4363.                         }else{
  4364.                             if($red == $studentRegistration->getIsRedoubling()){
  4365.                                 if(null == $gender){
  4366.                                     $registereds->add($studentRegistration);
  4367.                                 }else{
  4368.                                     if ($studentRegistration->getStudent()->getGender() == $gender) {
  4369.                                         $registereds->add($studentRegistration);
  4370.                                     }
  4371.                                 }
  4372.                             }
  4373.                         }
  4374.                     }
  4375.                 }
  4376.             }
  4377.         }
  4378.         return $registereds;
  4379.     }
  4380.     public function getShortName(): ?string
  4381.     {
  4382.         return $this->short_name;
  4383.     }
  4384.     public function setShortName(?string $short_name): self
  4385.     {
  4386.         $this->short_name $short_name;
  4387.         return $this;
  4388.     }
  4389.     /**
  4390.      * @return Collection|RhSalaryContract[]
  4391.      */
  4392.     public function getRhSalaryContracts(): Collection
  4393.     {
  4394.         return $this->rhSalaryContracts;
  4395.     }
  4396.     public function addRhSalaryContract(RhSalaryContract $rhSalaryContract): self
  4397.     {
  4398.         if (!$this->rhSalaryContracts->contains($rhSalaryContract)) {
  4399.             $this->rhSalaryContracts[] = $rhSalaryContract;
  4400.             $rhSalaryContract->setEstablishment($this);
  4401.         }
  4402.         return $this;
  4403.     }
  4404.     public function removeRhSalaryContract(RhSalaryContract $rhSalaryContract): self
  4405.     {
  4406.         if ($this->rhSalaryContracts->removeElement($rhSalaryContract)) {
  4407.             // set the owning side to null (unless already changed)
  4408.             if ($rhSalaryContract->getEstablishment() === $this) {
  4409.                 $rhSalaryContract->setEstablishment(null);
  4410.             }
  4411.         }
  4412.         return $this;
  4413.     }
  4414.     /**
  4415.      * @return Collection|RhSalaryContractItem[]
  4416.      */
  4417.     public function getRhSalaryContractItems(): Collection
  4418.     {
  4419.         return $this->rhSalaryContractItems;
  4420.     }
  4421.     public function addRhSalaryContractItem(RhSalaryContractItem $rhSalaryContractItem): self
  4422.     {
  4423.         if (!$this->rhSalaryContractItems->contains($rhSalaryContractItem)) {
  4424.             $this->rhSalaryContractItems[] = $rhSalaryContractItem;
  4425.             $rhSalaryContractItem->setEstablishment($this);
  4426.         }
  4427.         return $this;
  4428.     }
  4429.     public function removeRhSalaryContractItem(RhSalaryContractItem $rhSalaryContractItem): self
  4430.     {
  4431.         if ($this->rhSalaryContractItems->removeElement($rhSalaryContractItem)) {
  4432.             // set the owning side to null (unless already changed)
  4433.             if ($rhSalaryContractItem->getEstablishment() === $this) {
  4434.                 $rhSalaryContractItem->setEstablishment(null);
  4435.             }
  4436.         }
  4437.         return $this;
  4438.     }
  4439.     /**
  4440.      * @return Collection|SchoolTeacherTimeSheet[]
  4441.      */
  4442.     public function getSchoolTeacherTimeSheets(): Collection
  4443.     {
  4444.         return $this->schoolTeacherTimeSheets;
  4445.     }
  4446.     public function addSchoolTeacherTimeSheet(SchoolTeacherTimeSheet $schoolTeacherTimeSheet): self
  4447.     {
  4448.         if (!$this->schoolTeacherTimeSheets->contains($schoolTeacherTimeSheet)) {
  4449.             $this->schoolTeacherTimeSheets[] = $schoolTeacherTimeSheet;
  4450.             $schoolTeacherTimeSheet->setEstablishment($this);
  4451.         }
  4452.         return $this;
  4453.     }
  4454.     public function removeSchoolTeacherTimeSheet(SchoolTeacherTimeSheet $schoolTeacherTimeSheet): self
  4455.     {
  4456.         if ($this->schoolTeacherTimeSheets->removeElement($schoolTeacherTimeSheet)) {
  4457.             // set the owning side to null (unless already changed)
  4458.             if ($schoolTeacherTimeSheet->getEstablishment() === $this) {
  4459.                 $schoolTeacherTimeSheet->setEstablishment(null);
  4460.             }
  4461.         }
  4462.         return $this;
  4463.     }
  4464.     /**
  4465.      * @return Collection|AccountingExpenseCategory[]
  4466.      */
  4467.     public function getAccountingExpenseCategories(): Collection
  4468.     {
  4469.         return $this->accountingExpenseCategories;
  4470.     }
  4471.     public function addAccountingExpenseCategory(AccountingExpenseCategory $accountingExpenseCategory): self
  4472.     {
  4473.         if (!$this->accountingExpenseCategories->contains($accountingExpenseCategory)) {
  4474.             $this->accountingExpenseCategories[] = $accountingExpenseCategory;
  4475.             $accountingExpenseCategory->setEstablishment($this);
  4476.         }
  4477.         return $this;
  4478.     }
  4479.     public function removeAccountingExpenseCategory(AccountingExpenseCategory $accountingExpenseCategory): self
  4480.     {
  4481.         if ($this->accountingExpenseCategories->removeElement($accountingExpenseCategory)) {
  4482.             // set the owning side to null (unless already changed)
  4483.             if ($accountingExpenseCategory->getEstablishment() === $this) {
  4484.                 $accountingExpenseCategory->setEstablishment(null);
  4485.             }
  4486.         }
  4487.         return $this;
  4488.     }
  4489.     /**
  4490.      * @return Collection|SchoolAssessment[]
  4491.      */
  4492.     public function getSchoolAssessments(): Collection
  4493.     {
  4494.         return $this->schoolAssessments;
  4495.     }
  4496.     public function addSchoolAssessment(SchoolAssessment $schoolAssessment): self
  4497.     {
  4498.         if (!$this->schoolAssessments->contains($schoolAssessment)) {
  4499.             $this->schoolAssessments[] = $schoolAssessment;
  4500.             $schoolAssessment->setEstablishment($this);
  4501.         }
  4502.         return $this;
  4503.     }
  4504.     public function removeSchoolAssessment(SchoolAssessment $schoolAssessment): self
  4505.     {
  4506.         if ($this->schoolAssessments->removeElement($schoolAssessment)) {
  4507.             // set the owning side to null (unless already changed)
  4508.             if ($schoolAssessment->getEstablishment() === $this) {
  4509.                 $schoolAssessment->setEstablishment(null);
  4510.             }
  4511.         }
  4512.         return $this;
  4513.     }
  4514.     /**
  4515.      * @return Collection|RhSalaryCredit[]
  4516.      */
  4517.     public function getRhSalaryCredits(): Collection
  4518.     {
  4519.         return $this->rhSalaryCredits;
  4520.     }
  4521.     public function addRhSalaryCredit(RhSalaryCredit $rhSalaryCredit): self
  4522.     {
  4523.         if (!$this->rhSalaryCredits->contains($rhSalaryCredit)) {
  4524.             $this->rhSalaryCredits[] = $rhSalaryCredit;
  4525.             $rhSalaryCredit->setEstablishment($this);
  4526.         }
  4527.         return $this;
  4528.     }
  4529.     public function removeRhSalaryCredit(RhSalaryCredit $rhSalaryCredit): self
  4530.     {
  4531.         if ($this->rhSalaryCredits->removeElement($rhSalaryCredit)) {
  4532.             // set the owning side to null (unless already changed)
  4533.             if ($rhSalaryCredit->getEstablishment() === $this) {
  4534.                 $rhSalaryCredit->setEstablishment(null);
  4535.             }
  4536.         }
  4537.         return $this;
  4538.     }
  4539.     /**
  4540.      * @return Collection|RhSalaryCreditShedul[]
  4541.      */
  4542.     public function getRhSalaryCreditSheduls(): Collection
  4543.     {
  4544.         return $this->rhSalaryCreditSheduls;
  4545.     }
  4546.     public function addRhSalaryCreditShedul(RhSalaryCreditShedul $rhSalaryCreditShedul): self
  4547.     {
  4548.         if (!$this->rhSalaryCreditSheduls->contains($rhSalaryCreditShedul)) {
  4549.             $this->rhSalaryCreditSheduls[] = $rhSalaryCreditShedul;
  4550.             $rhSalaryCreditShedul->setEstablishment($this);
  4551.         }
  4552.         return $this;
  4553.     }
  4554.     public function removeRhSalaryCreditShedul(RhSalaryCreditShedul $rhSalaryCreditShedul): self
  4555.     {
  4556.         if ($this->rhSalaryCreditSheduls->removeElement($rhSalaryCreditShedul)) {
  4557.             // set the owning side to null (unless already changed)
  4558.             if ($rhSalaryCreditShedul->getEstablishment() === $this) {
  4559.                 $rhSalaryCreditShedul->setEstablishment(null);
  4560.             }
  4561.         }
  4562.         return $this;
  4563.     }
  4564.     public function getParent(): ?self
  4565.     {
  4566.         return $this->parent;
  4567.     }
  4568.     public function setParent(?self $parent): self
  4569.     {
  4570.         $this->parent $parent;
  4571.         return $this;
  4572.     }
  4573.     /**
  4574.      * @return Collection|self[]
  4575.      */
  4576.     public function getChildEstablishments(): Collection
  4577.     {
  4578.         return $this->childEstablishments;
  4579.     }
  4580.     public function addChildEstablishment(self $childEstablishment): self
  4581.     {
  4582.         if (!$this->childEstablishments->contains($childEstablishment)) {
  4583.             $this->childEstablishments[] = $childEstablishment;
  4584.             $childEstablishment->setParent($this);
  4585.         }
  4586.         return $this;
  4587.     }
  4588.     public function removeChildEstablishment(self $childEstablishment): self
  4589.     {
  4590.         if ($this->childEstablishments->removeElement($childEstablishment)) {
  4591.             // set the owning side to null (unless already changed)
  4592.             if ($childEstablishment->getParent() === $this) {
  4593.                 $childEstablishment->setParent(null);
  4594.             }
  4595.         }
  4596.         return $this;
  4597.     }
  4598.     /**
  4599.      * @return Collection|SettingFeeProviderDistribution[]
  4600.      */
  4601.     public function getSettingFeeProviderDistributions(): Collection
  4602.     {
  4603.         return $this->settingFeeProviderDistributions;
  4604.     }
  4605.     public function addSettingFeeProviderDistribution(SettingFeeProviderDistribution $settingFeeProviderDistribution): self
  4606.     {
  4607.         if (!$this->settingFeeProviderDistributions->contains($settingFeeProviderDistribution)) {
  4608.             $this->settingFeeProviderDistributions[] = $settingFeeProviderDistribution;
  4609.             $settingFeeProviderDistribution->setEstablishment($this);
  4610.         }
  4611.         return $this;
  4612.     }
  4613.     public function removeSettingFeeProviderDistribution(SettingFeeProviderDistribution $settingFeeProviderDistribution): self
  4614.     {
  4615.         if ($this->settingFeeProviderDistributions->removeElement($settingFeeProviderDistribution)) {
  4616.             // set the owning side to null (unless already changed)
  4617.             if ($settingFeeProviderDistribution->getEstablishment() === $this) {
  4618.                 $settingFeeProviderDistribution->setEstablishment(null);
  4619.             }
  4620.         }
  4621.         return $this;
  4622.     }
  4623.     public function getSmsRecovery(): ?string
  4624.     {
  4625.         return $this->sms_recovery;
  4626.     }
  4627.     public function setSmsRecovery(?string $sms_recovery): self
  4628.     {
  4629.         $this->sms_recovery $sms_recovery;
  4630.         return $this;
  4631.     }
  4632.     public function getOciSmsSender(): ?string
  4633.     {
  4634.         return $this->oci_sms_sender;
  4635.     }
  4636.     public function setOciSmsSender(string $oci_sms_sender): self
  4637.     {
  4638.         $this->oci_sms_sender $oci_sms_sender;
  4639.         return $this;
  4640.     }
  4641.     public function getSmsGateway(): ?string
  4642.     {
  4643.         return $this->sms_gateway;
  4644.     }
  4645.     public function setSmsGateway(string $sms_gateway): self
  4646.     {
  4647.         $this->sms_gateway $sms_gateway;
  4648.         return $this;
  4649.     }
  4650.     /**
  4651.      * @return Collection|AccountingChequeTracking[]
  4652.      */
  4653.     public function getAccountingChequeTrackings(): Collection
  4654.     {
  4655.         return $this->accountingChequeTrackings;
  4656.     }
  4657.     public function addAccountingChequeTracking(AccountingChequeTracking $accountingChequeTracking): self
  4658.     {
  4659.         if (!$this->accountingChequeTrackings->contains($accountingChequeTracking)) {
  4660.             $this->accountingChequeTrackings[] = $accountingChequeTracking;
  4661.             $accountingChequeTracking->setEstablishment($this);
  4662.         }
  4663.         return $this;
  4664.     }
  4665.     public function removeAccountingChequeTracking(AccountingChequeTracking $accountingChequeTracking): self
  4666.     {
  4667.         if ($this->accountingChequeTrackings->removeElement($accountingChequeTracking)) {
  4668.             // set the owning side to null (unless already changed)
  4669.             if ($accountingChequeTracking->getEstablishment() === $this) {
  4670.                 $accountingChequeTracking->setEstablishment(null);
  4671.             }
  4672.         }
  4673.         return $this;
  4674.     }
  4675.     /**
  4676.      * @return Collection|AccountingChequeTrackingLine[]
  4677.      */
  4678.     public function getAccountingChequeTrackingLines(): Collection
  4679.     {
  4680.         return $this->accountingChequeTrackingLines;
  4681.     }
  4682.     public function addAccountingChequeTrackingLine(AccountingChequeTrackingLine $accountingChequeTrackingLine): self
  4683.     {
  4684.         if (!$this->accountingChequeTrackingLines->contains($accountingChequeTrackingLine)) {
  4685.             $this->accountingChequeTrackingLines[] = $accountingChequeTrackingLine;
  4686.             $accountingChequeTrackingLine->setEstablishment($this);
  4687.         }
  4688.         return $this;
  4689.     }
  4690.     public function removeAccountingChequeTrackingLine(AccountingChequeTrackingLine $accountingChequeTrackingLine): self
  4691.     {
  4692.         if ($this->accountingChequeTrackingLines->removeElement($accountingChequeTrackingLine)) {
  4693.             // set the owning side to null (unless already changed)
  4694.             if ($accountingChequeTrackingLine->getEstablishment() === $this) {
  4695.                 $accountingChequeTrackingLine->setEstablishment(null);
  4696.             }
  4697.         }
  4698.         return $this;
  4699.     }
  4700.     public function getIsSendAbsenceSms(): ?bool
  4701.     {
  4702.         return $this->is_send_absence_sms;
  4703.     }
  4704.     public function setIsSendAbsenceSms(bool $is_send_absence_sms): self
  4705.     {
  4706.         $this->is_send_absence_sms $is_send_absence_sms;
  4707.         return $this;
  4708.     }
  4709.     public function getWaveApiLocation(): ?string
  4710.     {
  4711.         return $this->wave_api_location;
  4712.     }
  4713.     public function setWaveApiLocation(?string $wave_api_location): self
  4714.     {
  4715.         $this->wave_api_location $wave_api_location;
  4716.         return $this;
  4717.     }
  4718.     public function getWaveApiStoreMerchantId(): ?string
  4719.     {
  4720.         return $this->wave_api_store_merchant_id;
  4721.     }
  4722.     public function setWaveApiStoreMerchantId(?string $wave_api_store_merchant_id): self
  4723.     {
  4724.         $this->wave_api_store_merchant_id $wave_api_store_merchant_id;
  4725.         return $this;
  4726.     }
  4727.     public function getWaveApiReinbursementCode(): ?string
  4728.     {
  4729.         return $this->wave_api_reinbursement_code;
  4730.     }
  4731.     public function setWaveApiReinbursementCode(?string $wave_api_reinbursement_code): self
  4732.     {
  4733.         $this->wave_api_reinbursement_code $wave_api_reinbursement_code;
  4734.         return $this;
  4735.     }
  4736.     public function getWaveApiSetupNumber(): ?string
  4737.     {
  4738.         return $this->wave_api_setup_number;
  4739.     }
  4740.     public function setWaveApiSetupNumber(?string $wave_api_setup_number): self
  4741.     {
  4742.         $this->wave_api_setup_number $wave_api_setup_number;
  4743.         return $this;
  4744.     }
  4745.     public function getWaveApiCodeSecret(): ?string
  4746.     {
  4747.         return $this->wave_api_code_secret;
  4748.     }
  4749.     public function setWaveApiCodeSecret(?string $wave_api_code_secret): self
  4750.     {
  4751.         $this->wave_api_code_secret $wave_api_code_secret;
  4752.         return $this;
  4753.     }
  4754.     /**
  4755.      * @return Collection|SalaryBandScale[]
  4756.      */
  4757.     public function getSalaryBandScales(): Collection
  4758.     {
  4759.         return $this->salaryBandScales;
  4760.     }
  4761.     public function addSalaryBandScale(SalaryBandScale $salaryBandScale): self
  4762.     {
  4763.         if (!$this->salaryBandScales->contains($salaryBandScale)) {
  4764.             $this->salaryBandScales[] = $salaryBandScale;
  4765.             $salaryBandScale->setEstablishment($this);
  4766.         }
  4767.         return $this;
  4768.     }
  4769.     public function removeSalaryBandScale(SalaryBandScale $salaryBandScale): self
  4770.     {
  4771.         if ($this->salaryBandScales->removeElement($salaryBandScale)) {
  4772.             // set the owning side to null (unless already changed)
  4773.             if ($salaryBandScale->getEstablishment() === $this) {
  4774.                 $salaryBandScale->setEstablishment(null);
  4775.             }
  4776.         }
  4777.         return $this;
  4778.     }
  4779.     /**
  4780.      * @return Collection|TaxReductionShedule[]
  4781.      */
  4782.     public function getTaxReductionShedules(): Collection
  4783.     {
  4784.         return $this->taxReductionShedules;
  4785.     }
  4786.     public function addTaxReductionShedule(TaxReductionShedule $taxReductionShedule): self
  4787.     {
  4788.         if (!$this->taxReductionShedules->contains($taxReductionShedule)) {
  4789.             $this->taxReductionShedules[] = $taxReductionShedule;
  4790.             $taxReductionShedule->setEstablishment($this);
  4791.         }
  4792.         return $this;
  4793.     }
  4794.     public function removeTaxReductionShedule(TaxReductionShedule $taxReductionShedule): self
  4795.     {
  4796.         if ($this->taxReductionShedules->removeElement($taxReductionShedule)) {
  4797.             // set the owning side to null (unless already changed)
  4798.             if ($taxReductionShedule->getEstablishment() === $this) {
  4799.                 $taxReductionShedule->setEstablishment(null);
  4800.             }
  4801.         }
  4802.         return $this;
  4803.     }
  4804.     /**
  4805.      * @return Collection|LogOperation[]
  4806.      */
  4807.     public function getLogOperations(): Collection
  4808.     {
  4809.         return $this->logOperations;
  4810.     }
  4811.     public function addLogOperation(LogOperation $logOperation): self
  4812.     {
  4813.         if (!$this->logOperations->contains($logOperation)) {
  4814.             $this->logOperations[] = $logOperation;
  4815.             $logOperation->setEstablishment($this);
  4816.         }
  4817.         return $this;
  4818.     }
  4819.     public function removeLogOperation(LogOperation $logOperation): self
  4820.     {
  4821.         if ($this->logOperations->removeElement($logOperation)) {
  4822.             // set the owning side to null (unless already changed)
  4823.             if ($logOperation->getEstablishment() === $this) {
  4824.                 $logOperation->setEstablishment(null);
  4825.             }
  4826.         }
  4827.         return $this;
  4828.     }
  4829.     /**
  4830.      * @return Collection|SchoolReportCardAbsence[]
  4831.      */
  4832.     public function getSchoolReportCardAbsences(): Collection
  4833.     {
  4834.         return $this->schoolReportCardAbsences;
  4835.     }
  4836.     public function addSchoolReportCardAbsence(SchoolReportCardAbsence $schoolReportCardAbsence): self
  4837.     {
  4838.         if (!$this->schoolReportCardAbsences->contains($schoolReportCardAbsence)) {
  4839.             $this->schoolReportCardAbsences[] = $schoolReportCardAbsence;
  4840.             $schoolReportCardAbsence->setEstablishment($this);
  4841.         }
  4842.         return $this;
  4843.     }
  4844.     public function removeSchoolReportCardAbsence(SchoolReportCardAbsence $schoolReportCardAbsence): self
  4845.     {
  4846.         if ($this->schoolReportCardAbsences->removeElement($schoolReportCardAbsence)) {
  4847.             // set the owning side to null (unless already changed)
  4848.             if ($schoolReportCardAbsence->getEstablishment() === $this) {
  4849.                 $schoolReportCardAbsence->setEstablishment(null);
  4850.             }
  4851.         }
  4852.         return $this;
  4853.     }
  4854.     /**
  4855.      * @return Collection|WavePayment[]
  4856.      */
  4857.     public function getWavePayments(): Collection
  4858.     {
  4859.         return $this->wavePayments;
  4860.     }
  4861.     public function addWavePayment(WavePayment $wavePayment): self
  4862.     {
  4863.         if (!$this->wavePayments->contains($wavePayment)) {
  4864.             $this->wavePayments[] = $wavePayment;
  4865.             $wavePayment->setEstablishment($this);
  4866.         }
  4867.         return $this;
  4868.     }
  4869.     public function removeWavePayment(WavePayment $wavePayment): self
  4870.     {
  4871.         if ($this->wavePayments->removeElement($wavePayment)) {
  4872.             // set the owning side to null (unless already changed)
  4873.             if ($wavePayment->getEstablishment() === $this) {
  4874.                 $wavePayment->setEstablishment(null);
  4875.             }
  4876.         }
  4877.         return $this;
  4878.     }
  4879.     /**
  4880.      * @return Collection|ToxicologicalTestResult[]
  4881.      */
  4882.     public function getToxicologicalTestResults(): Collection
  4883.     {
  4884.         return $this->toxicologicalTestResults;
  4885.     }
  4886.     public function addToxicologicalTestResult(ToxicologicalTestResult $toxicologicalTestResult): self
  4887.     {
  4888.         if (!$this->toxicologicalTestResults->contains($toxicologicalTestResult)) {
  4889.             $this->toxicologicalTestResults[] = $toxicologicalTestResult;
  4890.             $toxicologicalTestResult->setEstablishment($this);
  4891.         }
  4892.         return $this;
  4893.     }
  4894.     public function removeToxicologicalTestResult(ToxicologicalTestResult $toxicologicalTestResult): self
  4895.     {
  4896.         if ($this->toxicologicalTestResults->removeElement($toxicologicalTestResult)) {
  4897.             // set the owning side to null (unless already changed)
  4898.             if ($toxicologicalTestResult->getEstablishment() === $this) {
  4899.                 $toxicologicalTestResult->setEstablishment(null);
  4900.             }
  4901.         }
  4902.         return $this;
  4903.     }
  4904.     /**
  4905.      * @return Collection|ToxicologicalTestResultLine[]
  4906.      */
  4907.     public function getToxicologicalTestResultLines(): Collection
  4908.     {
  4909.         return $this->toxicologicalTestResultLines;
  4910.     }
  4911.     public function addToxicologicalTestResultLine(ToxicologicalTestResultLine $toxicologicalTestResultLine): self
  4912.     {
  4913.         if (!$this->toxicologicalTestResultLines->contains($toxicologicalTestResultLine)) {
  4914.             $this->toxicologicalTestResultLines[] = $toxicologicalTestResultLine;
  4915.             $toxicologicalTestResultLine->setEstablishment($this);
  4916.         }
  4917.         return $this;
  4918.     }
  4919.     public function removeToxicologicalTestResultLine(ToxicologicalTestResultLine $toxicologicalTestResultLine): self
  4920.     {
  4921.         if ($this->toxicologicalTestResultLines->removeElement($toxicologicalTestResultLine)) {
  4922.             // set the owning side to null (unless already changed)
  4923.             if ($toxicologicalTestResultLine->getEstablishment() === $this) {
  4924.                 $toxicologicalTestResultLine->setEstablishment(null);
  4925.             }
  4926.         }
  4927.         return $this;
  4928.     }
  4929.     /**
  4930.      * @return Collection|ToxicologicalTestLaboratory[]
  4931.      */
  4932.     public function getToxicologicalTestLaboratories(): Collection
  4933.     {
  4934.         return $this->toxicologicalTestLaboratories;
  4935.     }
  4936.     public function addToxicologicalTestLaboratory(ToxicologicalTestLaboratory $toxicologicalTestLaboratory): self
  4937.     {
  4938.         if (!$this->toxicologicalTestLaboratories->contains($toxicologicalTestLaboratory)) {
  4939.             $this->toxicologicalTestLaboratories[] = $toxicologicalTestLaboratory;
  4940.             $toxicologicalTestLaboratory->setEstablishment($this);
  4941.         }
  4942.         return $this;
  4943.     }
  4944.     public function removeToxicologicalTestLaboratory(ToxicologicalTestLaboratory $toxicologicalTestLaboratory): self
  4945.     {
  4946.         if ($this->toxicologicalTestLaboratories->removeElement($toxicologicalTestLaboratory)) {
  4947.             // set the owning side to null (unless already changed)
  4948.             if ($toxicologicalTestLaboratory->getEstablishment() === $this) {
  4949.                 $toxicologicalTestLaboratory->setEstablishment(null);
  4950.             }
  4951.         }
  4952.         return $this;
  4953.     }
  4954.     public function getRegionalDirectorate(): ?string
  4955.     {
  4956.         return $this->regional_directorate;
  4957.     }
  4958.     public function setRegionalDirectorate(?string $regional_directorate): self
  4959.     {
  4960.         $this->regional_directorate $regional_directorate;
  4961.         return $this;
  4962.     }
  4963.     /**
  4964.      * @return Collection|SchoolTeacherAbsence[]
  4965.      */
  4966.     public function getSchoolTeacherAbsences(): Collection
  4967.     {
  4968.         return $this->schoolTeacherAbsences;
  4969.     }
  4970.     public function addSchoolTeacherAbsence(SchoolTeacherAbsence $schoolTeacherAbsence): self
  4971.     {
  4972.         if (!$this->schoolTeacherAbsences->contains($schoolTeacherAbsence)) {
  4973.             $this->schoolTeacherAbsences[] = $schoolTeacherAbsence;
  4974.             $schoolTeacherAbsence->setEstablishment($this);
  4975.         }
  4976.         return $this;
  4977.     }
  4978.     public function removeSchoolTeacherAbsence(SchoolTeacherAbsence $schoolTeacherAbsence): self
  4979.     {
  4980.         if ($this->schoolTeacherAbsences->removeElement($schoolTeacherAbsence)) {
  4981.             // set the owning side to null (unless already changed)
  4982.             if ($schoolTeacherAbsence->getEstablishment() === $this) {
  4983.                 $schoolTeacherAbsence->setEstablishment(null);
  4984.             }
  4985.         }
  4986.         return $this;
  4987.     }
  4988.     /**
  4989.      * @return Collection|GescotiContribution[]
  4990.      */
  4991.     public function getGescotiContributions(): Collection
  4992.     {
  4993.         return $this->gescotiContributions;
  4994.     }
  4995.     public function addGescotiContribution(GescotiContribution $gescotiContribution): self
  4996.     {
  4997.         if (!$this->gescotiContributions->contains($gescotiContribution)) {
  4998.             $this->gescotiContributions[] = $gescotiContribution;
  4999.             $gescotiContribution->setEstablishment($this);
  5000.         }
  5001.         return $this;
  5002.     }
  5003.     public function removeGescotiContribution(GescotiContribution $gescotiContribution): self
  5004.     {
  5005.         if ($this->gescotiContributions->removeElement($gescotiContribution)) {
  5006.             // set the owning side to null (unless already changed)
  5007.             if ($gescotiContribution->getEstablishment() === $this) {
  5008.                 $gescotiContribution->setEstablishment(null);
  5009.             }
  5010.         }
  5011.         return $this;
  5012.     }
  5013.     public function getRecoveryPutOutAmount(): ?float
  5014.     {
  5015.         return $this->recovery_put_out_amount;
  5016.     }
  5017.     public function setRecoveryPutOutAmount(?float $recovery_put_out_amount): self
  5018.     {
  5019.         $this->recovery_put_out_amount $recovery_put_out_amount;
  5020.         return $this;
  5021.     }
  5022.     public function getFeeShedulEndDate(): ?\DateTimeImmutable
  5023.     {
  5024.         return $this->fee_shedul_end_date;
  5025.     }
  5026.     public function setFeeShedulEndDate(?\DateTimeImmutable $fee_shedul_end_date): self
  5027.     {
  5028.         $this->fee_shedul_end_date $fee_shedul_end_date;
  5029.         return $this;
  5030.     }
  5031.     public function getOciSmsPhone(): ?string
  5032.     {
  5033.         return $this->oci_sms_phone;
  5034.     }
  5035.     public function setOciSmsPhone(?string $oci_sms_phone): self
  5036.     {
  5037.         $this->oci_sms_phone $oci_sms_phone;
  5038.         return $this;
  5039.     }
  5040.     /**
  5041.      * @return Collection|RegistrationStudentContact[]
  5042.      */
  5043.     public function getRegistrationStudentContacts(): Collection
  5044.     {
  5045.         return $this->registrationStudentContacts;
  5046.     }
  5047.     public function addRegistrationStudentContact(RegistrationStudentContact $registrationStudentContact): self
  5048.     {
  5049.         if (!$this->registrationStudentContacts->contains($registrationStudentContact)) {
  5050.             $this->registrationStudentContacts[] = $registrationStudentContact;
  5051.             $registrationStudentContact->setEstablishment($this);
  5052.         }
  5053.         return $this;
  5054.     }
  5055.     public function removeRegistrationStudentContact(RegistrationStudentContact $registrationStudentContact): self
  5056.     {
  5057.         if ($this->registrationStudentContacts->removeElement($registrationStudentContact)) {
  5058.             // set the owning side to null (unless already changed)
  5059.             if ($registrationStudentContact->getEstablishment() === $this) {
  5060.                 $registrationStudentContact->setEstablishment(null);
  5061.             }
  5062.         }
  5063.         return $this;
  5064.     }
  5065.     /**
  5066.      * @return Collection|TransportCallSheet[]
  5067.      */
  5068.     public function getTransportCallSheets(): Collection
  5069.     {
  5070.         return $this->transportCallSheets;
  5071.     }
  5072.     public function addTransportCallSheet(TransportCallSheet $transportCallSheet): self
  5073.     {
  5074.         if (!$this->transportCallSheets->contains($transportCallSheet)) {
  5075.             $this->transportCallSheets[] = $transportCallSheet;
  5076.             $transportCallSheet->setEstablishment($this);
  5077.         }
  5078.         return $this;
  5079.     }
  5080.     public function removeTransportCallSheet(TransportCallSheet $transportCallSheet): self
  5081.     {
  5082.         if ($this->transportCallSheets->removeElement($transportCallSheet)) {
  5083.             // set the owning side to null (unless already changed)
  5084.             if ($transportCallSheet->getEstablishment() === $this) {
  5085.                 $transportCallSheet->setEstablishment(null);
  5086.             }
  5087.         }
  5088.         return $this;
  5089.     }
  5090.     /**
  5091.      * @return Collection|TransportCallSheetLine[]
  5092.      */
  5093.     public function getTransportCallSheetLines(): Collection
  5094.     {
  5095.         return $this->transportCallSheetLines;
  5096.     }
  5097.     public function addTransportCallSheetLine(TransportCallSheetLine $transportCallSheetLine): self
  5098.     {
  5099.         if (!$this->transportCallSheetLines->contains($transportCallSheetLine)) {
  5100.             $this->transportCallSheetLines[] = $transportCallSheetLine;
  5101.             $transportCallSheetLine->setEstablishment($this);
  5102.         }
  5103.         return $this;
  5104.     }
  5105.     public function removeTransportCallSheetLine(TransportCallSheetLine $transportCallSheetLine): self
  5106.     {
  5107.         if ($this->transportCallSheetLines->removeElement($transportCallSheetLine)) {
  5108.             // set the owning side to null (unless already changed)
  5109.             if ($transportCallSheetLine->getEstablishment() === $this) {
  5110.                 $transportCallSheetLine->setEstablishment(null);
  5111.             }
  5112.         }
  5113.         return $this;
  5114.     }
  5115.     /**
  5116.      * @return Collection|CommunicationMessageQueue[]
  5117.      */
  5118.     public function getCommunicationMessageQueues(): Collection
  5119.     {
  5120.         return $this->communicationMessageQueues;
  5121.     }
  5122.     public function addCommunicationMessageQueue(CommunicationMessageQueue $communicationMessageQueue): self
  5123.     {
  5124.         if (!$this->communicationMessageQueues->contains($communicationMessageQueue)) {
  5125.             $this->communicationMessageQueues[] = $communicationMessageQueue;
  5126.             $communicationMessageQueue->setEstablishment($this);
  5127.         }
  5128.         return $this;
  5129.     }
  5130.     public function removeCommunicationMessageQueue(CommunicationMessageQueue $communicationMessageQueue): self
  5131.     {
  5132.         if ($this->communicationMessageQueues->removeElement($communicationMessageQueue)) {
  5133.             // set the owning side to null (unless already changed)
  5134.             if ($communicationMessageQueue->getEstablishment() === $this) {
  5135.                 $communicationMessageQueue->setEstablishment(null);
  5136.             }
  5137.         }
  5138.         return $this;
  5139.     }
  5140.     /**
  5141.      * @return Collection|StockWarehouse[]
  5142.      */
  5143.     public function getStockWarehouses(): Collection
  5144.     {
  5145.         return $this->stockWarehouses;
  5146.     }
  5147.     public function addStockWarehouse(StockWarehouse $stockWarehouse): self
  5148.     {
  5149.         if (!$this->stockWarehouses->contains($stockWarehouse)) {
  5150.             $this->stockWarehouses[] = $stockWarehouse;
  5151.             $stockWarehouse->setEstablishment($this);
  5152.         }
  5153.         return $this;
  5154.     }
  5155.     public function removeStockWarehouse(StockWarehouse $stockWarehouse): self
  5156.     {
  5157.         if ($this->stockWarehouses->removeElement($stockWarehouse)) {
  5158.             // set the owning side to null (unless already changed)
  5159.             if ($stockWarehouse->getEstablishment() === $this) {
  5160.                 $stockWarehouse->setEstablishment(null);
  5161.             }
  5162.         }
  5163.         return $this;
  5164.     }
  5165.     /**
  5166.      * @return Collection|StockMovement[]
  5167.      */
  5168.     public function getStockMovements(): Collection
  5169.     {
  5170.         return $this->stockMovements;
  5171.     }
  5172.     public function addStockMovement(StockMovement $stockMovement): self
  5173.     {
  5174.         if (!$this->stockMovements->contains($stockMovement)) {
  5175.             $this->stockMovements[] = $stockMovement;
  5176.             $stockMovement->setEstablishment($this);
  5177.         }
  5178.         return $this;
  5179.     }
  5180.     public function removeStockMovement(StockMovement $stockMovement): self
  5181.     {
  5182.         if ($this->stockMovements->removeElement($stockMovement)) {
  5183.             // set the owning side to null (unless already changed)
  5184.             if ($stockMovement->getEstablishment() === $this) {
  5185.                 $stockMovement->setEstablishment(null);
  5186.             }
  5187.         }
  5188.         return $this;
  5189.     }
  5190.     /**
  5191.      * @return Collection|StockDeliveryNote[]
  5192.      */
  5193.     public function getStockDeliveryNotes(): Collection
  5194.     {
  5195.         return $this->stockDeliveryNotes;
  5196.     }
  5197.     public function addStockDeliveryNote(StockDeliveryNote $stockDeliveryNote): self
  5198.     {
  5199.         if (!$this->stockDeliveryNotes->contains($stockDeliveryNote)) {
  5200.             $this->stockDeliveryNotes[] = $stockDeliveryNote;
  5201.             $stockDeliveryNote->setEstablishment($this);
  5202.         }
  5203.         return $this;
  5204.     }
  5205.     public function removeStockDeliveryNote(StockDeliveryNote $stockDeliveryNote): self
  5206.     {
  5207.         if ($this->stockDeliveryNotes->removeElement($stockDeliveryNote)) {
  5208.             // set the owning side to null (unless already changed)
  5209.             if ($stockDeliveryNote->getEstablishment() === $this) {
  5210.                 $stockDeliveryNote->setEstablishment(null);
  5211.             }
  5212.         }
  5213.         return $this;
  5214.     }
  5215.     /**
  5216.      * @return Collection|StockDeliveryNoteLine[]
  5217.      */
  5218.     public function getStockDeliveryNoteLines(): Collection
  5219.     {
  5220.         return $this->stockDeliveryNoteLines;
  5221.     }
  5222.     public function addStockDeliveryNoteLine(StockDeliveryNoteLine $stockDeliveryNoteLine): self
  5223.     {
  5224.         if (!$this->stockDeliveryNoteLines->contains($stockDeliveryNoteLine)) {
  5225.             $this->stockDeliveryNoteLines[] = $stockDeliveryNoteLine;
  5226.             $stockDeliveryNoteLine->setEstablishment($this);
  5227.         }
  5228.         return $this;
  5229.     }
  5230.     public function removeStockDeliveryNoteLine(StockDeliveryNoteLine $stockDeliveryNoteLine): self
  5231.     {
  5232.         if ($this->stockDeliveryNoteLines->removeElement($stockDeliveryNoteLine)) {
  5233.             // set the owning side to null (unless already changed)
  5234.             if ($stockDeliveryNoteLine->getEstablishment() === $this) {
  5235.                 $stockDeliveryNoteLine->setEstablishment(null);
  5236.             }
  5237.         }
  5238.         return $this;
  5239.     }
  5240.     /**
  5241.      * @return Collection|StockReceptionVoucher[]
  5242.      */
  5243.     public function getStockReceptionVouchers(): Collection
  5244.     {
  5245.         return $this->stockReceptionVouchers;
  5246.     }
  5247.     public function addStockReceptionVoucher(StockReceptionVoucher $stockReceptionVoucher): self
  5248.     {
  5249.         if (!$this->stockReceptionVouchers->contains($stockReceptionVoucher)) {
  5250.             $this->stockReceptionVouchers[] = $stockReceptionVoucher;
  5251.             $stockReceptionVoucher->setEstablishment($this);
  5252.         }
  5253.         return $this;
  5254.     }
  5255.     public function removeStockReceptionVoucher(StockReceptionVoucher $stockReceptionVoucher): self
  5256.     {
  5257.         if ($this->stockReceptionVouchers->removeElement($stockReceptionVoucher)) {
  5258.             // set the owning side to null (unless already changed)
  5259.             if ($stockReceptionVoucher->getEstablishment() === $this) {
  5260.                 $stockReceptionVoucher->setEstablishment(null);
  5261.             }
  5262.         }
  5263.         return $this;
  5264.     }
  5265.     /**
  5266.      * @return Collection|StockReceptionVoucherLine[]
  5267.      */
  5268.     public function getStockReceptionVoucherLines(): Collection
  5269.     {
  5270.         return $this->stockReceptionVoucherLines;
  5271.     }
  5272.     public function addStockReceptionVoucherLine(StockReceptionVoucherLine $stockReceptionVoucherLine): self
  5273.     {
  5274.         if (!$this->stockReceptionVoucherLines->contains($stockReceptionVoucherLine)) {
  5275.             $this->stockReceptionVoucherLines[] = $stockReceptionVoucherLine;
  5276.             $stockReceptionVoucherLine->setEstablishment($this);
  5277.         }
  5278.         return $this;
  5279.     }
  5280.     public function removeStockReceptionVoucherLine(StockReceptionVoucherLine $stockReceptionVoucherLine): self
  5281.     {
  5282.         if ($this->stockReceptionVoucherLines->removeElement($stockReceptionVoucherLine)) {
  5283.             // set the owning side to null (unless already changed)
  5284.             if ($stockReceptionVoucherLine->getEstablishment() === $this) {
  5285.                 $stockReceptionVoucherLine->setEstablishment(null);
  5286.             }
  5287.         }
  5288.         return $this;
  5289.     }
  5290.     /**
  5291.      * @return Collection|StockExitSlip[]
  5292.      */
  5293.     public function getStockExitSlips(): Collection
  5294.     {
  5295.         return $this->stockExitSlips;
  5296.     }
  5297.     public function addStockExitSlip(StockExitSlip $stockExitSlip): self
  5298.     {
  5299.         if (!$this->stockExitSlips->contains($stockExitSlip)) {
  5300.             $this->stockExitSlips[] = $stockExitSlip;
  5301.             $stockExitSlip->setEstablishment($this);
  5302.         }
  5303.         return $this;
  5304.     }
  5305.     public function removeStockExitSlip(StockExitSlip $stockExitSlip): self
  5306.     {
  5307.         if ($this->stockExitSlips->removeElement($stockExitSlip)) {
  5308.             // set the owning side to null (unless already changed)
  5309.             if ($stockExitSlip->getEstablishment() === $this) {
  5310.                 $stockExitSlip->setEstablishment(null);
  5311.             }
  5312.         }
  5313.         return $this;
  5314.     }
  5315.     /**
  5316.      * @return Collection|Stockinventory[]
  5317.      */
  5318.     public function getStockinventories(): Collection
  5319.     {
  5320.         return $this->stockinventories;
  5321.     }
  5322.     public function addStockinventory(Stockinventory $stockinventory): self
  5323.     {
  5324.         if (!$this->stockinventories->contains($stockinventory)) {
  5325.             $this->stockinventories[] = $stockinventory;
  5326.             $stockinventory->setEstablishment($this);
  5327.         }
  5328.         return $this;
  5329.     }
  5330.     public function removeStockinventory(Stockinventory $stockinventory): self
  5331.     {
  5332.         if ($this->stockinventories->removeElement($stockinventory)) {
  5333.             // set the owning side to null (unless already changed)
  5334.             if ($stockinventory->getEstablishment() === $this) {
  5335.                 $stockinventory->setEstablishment(null);
  5336.             }
  5337.         }
  5338.         return $this;
  5339.     }
  5340.     /**
  5341.      * @return Collection|StockinventoryLine[]
  5342.      */
  5343.     public function getStockinventoryLines(): Collection
  5344.     {
  5345.         return $this->stockinventoryLines;
  5346.     }
  5347.     public function addStockinventoryLine(StockinventoryLine $stockinventoryLine): self
  5348.     {
  5349.         if (!$this->stockinventoryLines->contains($stockinventoryLine)) {
  5350.             $this->stockinventoryLines[] = $stockinventoryLine;
  5351.             $stockinventoryLine->setEstablishment($this);
  5352.         }
  5353.         return $this;
  5354.     }
  5355.     public function removeStockinventoryLine(StockinventoryLine $stockinventoryLine): self
  5356.     {
  5357.         if ($this->stockinventoryLines->removeElement($stockinventoryLine)) {
  5358.             // set the owning side to null (unless already changed)
  5359.             if ($stockinventoryLine->getEstablishment() === $this) {
  5360.                 $stockinventoryLine->setEstablishment(null);
  5361.             }
  5362.         }
  5363.         return $this;
  5364.     }
  5365.     /**
  5366.      * @return Collection|Stocktransfer[]
  5367.      */
  5368.     public function getStocktransfers(): Collection
  5369.     {
  5370.         return $this->stocktransfers;
  5371.     }
  5372.     public function addStocktransfer(Stocktransfer $stocktransfer): self
  5373.     {
  5374.         if (!$this->stocktransfers->contains($stocktransfer)) {
  5375.             $this->stocktransfers[] = $stocktransfer;
  5376.             $stocktransfer->setEstablishment($this);
  5377.         }
  5378.         return $this;
  5379.     }
  5380.     public function removeStocktransfer(Stocktransfer $stocktransfer): self
  5381.     {
  5382.         if ($this->stocktransfers->removeElement($stocktransfer)) {
  5383.             // set the owning side to null (unless already changed)
  5384.             if ($stocktransfer->getEstablishment() === $this) {
  5385.                 $stocktransfer->setEstablishment(null);
  5386.             }
  5387.         }
  5388.         return $this;
  5389.     }
  5390.     /**
  5391.      * @return Collection|StocktransferLine[]
  5392.      */
  5393.     public function getStocktransferLines(): Collection
  5394.     {
  5395.         return $this->stocktransferLines;
  5396.     }
  5397.     public function addStocktransferLine(StocktransferLine $stocktransferLine): self
  5398.     {
  5399.         if (!$this->stocktransferLines->contains($stocktransferLine)) {
  5400.             $this->stocktransferLines[] = $stocktransferLine;
  5401.             $stocktransferLine->setEstablishment($this);
  5402.         }
  5403.         return $this;
  5404.     }
  5405.     public function removeStocktransferLine(StocktransferLine $stocktransferLine): self
  5406.     {
  5407.         if ($this->stocktransferLines->removeElement($stocktransferLine)) {
  5408.             // set the owning side to null (unless already changed)
  5409.             if ($stocktransferLine->getEstablishment() === $this) {
  5410.                 $stocktransferLine->setEstablishment(null);
  5411.             }
  5412.         }
  5413.         return $this;
  5414.     }
  5415.     /**
  5416.      * @return Collection|DocManager[]
  5417.      */
  5418.     public function getDocManagers(): Collection
  5419.     {
  5420.         return $this->docManagers;
  5421.     }
  5422.     public function addDocManager(DocManager $docManager): self
  5423.     {
  5424.         if (!$this->docManagers->contains($docManager)) {
  5425.             $this->docManagers[] = $docManager;
  5426.             $docManager->setEstablishment($this);
  5427.         }
  5428.         return $this;
  5429.     }
  5430.     public function removeDocManager(DocManager $docManager): self
  5431.     {
  5432.         if ($this->docManagers->removeElement($docManager)) {
  5433.             // set the owning side to null (unless already changed)
  5434.             if ($docManager->getEstablishment() === $this) {
  5435.                 $docManager->setEstablishment(null);
  5436.             }
  5437.         }
  5438.         return $this;
  5439.     }
  5440.     /**
  5441.      * @return Collection|DocManagerArticle[]
  5442.      */
  5443.     public function getDocManagerArticles(): Collection
  5444.     {
  5445.         return $this->docManagerArticles;
  5446.     }
  5447.     public function addDocManagerArticle(DocManagerArticle $docManagerArticle): self
  5448.     {
  5449.         if (!$this->docManagerArticles->contains($docManagerArticle)) {
  5450.             $this->docManagerArticles[] = $docManagerArticle;
  5451.             $docManagerArticle->setEstablishment($this);
  5452.         }
  5453.         return $this;
  5454.     }
  5455.     public function removeDocManagerArticle(DocManagerArticle $docManagerArticle): self
  5456.     {
  5457.         if ($this->docManagerArticles->removeElement($docManagerArticle)) {
  5458.             // set the owning side to null (unless already changed)
  5459.             if ($docManagerArticle->getEstablishment() === $this) {
  5460.                 $docManagerArticle->setEstablishment(null);
  5461.             }
  5462.         }
  5463.         return $this;
  5464.     }
  5465.     /**
  5466.      * @return Collection|TransportCallSheetCheckpoint[]
  5467.      */
  5468.     public function getTransportCallSheetCheckpoints(): Collection
  5469.     {
  5470.         return $this->transportCallSheetCheckpoints;
  5471.     }
  5472.     public function addTransportCallSheetCheckpoint(TransportCallSheetCheckpoint $transportCallSheetCheckpoint): self
  5473.     {
  5474.         if (!$this->transportCallSheetCheckpoints->contains($transportCallSheetCheckpoint)) {
  5475.             $this->transportCallSheetCheckpoints[] = $transportCallSheetCheckpoint;
  5476.             $transportCallSheetCheckpoint->setEstablishment($this);
  5477.         }
  5478.         return $this;
  5479.     }
  5480.     public function removeTransportCallSheetCheckpoint(TransportCallSheetCheckpoint $transportCallSheetCheckpoint): self
  5481.     {
  5482.         if ($this->transportCallSheetCheckpoints->removeElement($transportCallSheetCheckpoint)) {
  5483.             // set the owning side to null (unless already changed)
  5484.             if ($transportCallSheetCheckpoint->getEstablishment() === $this) {
  5485.                 $transportCallSheetCheckpoint->setEstablishment(null);
  5486.             }
  5487.         }
  5488.         return $this;
  5489.     }
  5490.     /**
  5491.      * @return Collection|TransportCallSheetCheckpointLine[]
  5492.      */
  5493.     public function getTransportCallSheetCheckpointLines(): Collection
  5494.     {
  5495.         return $this->transportCallSheetCheckpointLines;
  5496.     }
  5497.     public function addTransportCallSheetCheckpointLine(TransportCallSheetCheckpointLine $transportCallSheetCheckpointLine): self
  5498.     {
  5499.         if (!$this->transportCallSheetCheckpointLines->contains($transportCallSheetCheckpointLine)) {
  5500.             $this->transportCallSheetCheckpointLines[] = $transportCallSheetCheckpointLine;
  5501.             $transportCallSheetCheckpointLine->setEstablishment($this);
  5502.         }
  5503.         return $this;
  5504.     }
  5505.     public function removeTransportCallSheetCheckpointLine(TransportCallSheetCheckpointLine $transportCallSheetCheckpointLine): self
  5506.     {
  5507.         if ($this->transportCallSheetCheckpointLines->removeElement($transportCallSheetCheckpointLine)) {
  5508.             // set the owning side to null (unless already changed)
  5509.             if ($transportCallSheetCheckpointLine->getEstablishment() === $this) {
  5510.                 $transportCallSheetCheckpointLine->setEstablishment(null);
  5511.             }
  5512.         }
  5513.         return $this;
  5514.     }
  5515.     /**
  5516.      * @return Collection|TransportCallJourney[]
  5517.      */
  5518.     public function getTransportCallJourneys(): Collection
  5519.     {
  5520.         return $this->transportCallJourneys;
  5521.     }
  5522.     public function addTransportCallJourney(TransportCallJourney $transportCallJourney): self
  5523.     {
  5524.         if (!$this->transportCallJourneys->contains($transportCallJourney)) {
  5525.             $this->transportCallJourneys[] = $transportCallJourney;
  5526.             $transportCallJourney->setEstablishment($this);
  5527.         }
  5528.         return $this;
  5529.     }
  5530.     public function removeTransportCallJourney(TransportCallJourney $transportCallJourney): self
  5531.     {
  5532.         if ($this->transportCallJourneys->removeElement($transportCallJourney)) {
  5533.             // set the owning side to null (unless already changed)
  5534.             if ($transportCallJourney->getEstablishment() === $this) {
  5535.                 $transportCallJourney->setEstablishment(null);
  5536.             }
  5537.         }
  5538.         return $this;
  5539.     }
  5540.     /**
  5541.      * @return Collection|PayrollSync[]
  5542.      */
  5543.     public function getPayrollSyncs(): Collection
  5544.     {
  5545.         return $this->payrollSyncs;
  5546.     }
  5547.     public function addPayrollSync(PayrollSync $payrollSync): self
  5548.     {
  5549.         if (!$this->payrollSyncs->contains($payrollSync)) {
  5550.             $this->payrollSyncs[] = $payrollSync;
  5551.             $payrollSync->setEstablishment($this);
  5552.         }
  5553.         return $this;
  5554.     }
  5555.     public function removePayrollSync(PayrollSync $payrollSync): self
  5556.     {
  5557.         if ($this->payrollSyncs->removeElement($payrollSync)) {
  5558.             // set the owning side to null (unless already changed)
  5559.             if ($payrollSync->getEstablishment() === $this) {
  5560.                 $payrollSync->setEstablishment(null);
  5561.             }
  5562.         }
  5563.         return $this;
  5564.     }
  5565.     /**
  5566.      * @return Collection|PayrollRecord[]
  5567.      */
  5568.     public function getPayrollRecords(): Collection
  5569.     {
  5570.         return $this->payrollRecords;
  5571.     }
  5572.     public function addPayrollRecord(PayrollRecord $payrollRecord): self
  5573.     {
  5574.         if (!$this->payrollRecords->contains($payrollRecord)) {
  5575.             $this->payrollRecords[] = $payrollRecord;
  5576.             $payrollRecord->setEstablishment($this);
  5577.         }
  5578.         return $this;
  5579.     }
  5580.     public function removePayrollRecord(PayrollRecord $payrollRecord): self
  5581.     {
  5582.         if ($this->payrollRecords->removeElement($payrollRecord)) {
  5583.             // set the owning side to null (unless already changed)
  5584.             if ($payrollRecord->getEstablishment() === $this) {
  5585.                 $payrollRecord->setEstablishment(null);
  5586.             }
  5587.         }
  5588.         return $this;
  5589.     }
  5590.     public function getIsFaceAttendanceEnabled(): ?bool
  5591.     {
  5592.         return $this->is_face_attendance_enabled;
  5593.     }
  5594.     public function setIsFaceAttendanceEnabled(bool $is_face_attendance_enabled): self
  5595.     {
  5596.         $this->is_face_attendance_enabled $is_face_attendance_enabled;
  5597.         return $this;
  5598.     }
  5599. }