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