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