src/Entity/Establishment.php line 23

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