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