Organization.php 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity\Organization;
  4. use ApiPlatform\Metadata\ApiResource;
  5. use ApiPlatform\Metadata\Get;
  6. use App\Entity\Access\Access;
  7. use App\Entity\Billing\BillingExportSetting;
  8. use App\Entity\Billing\BillingSetting;
  9. use App\Entity\Billing\BillSchedule;
  10. use App\Entity\Billing\FamilyQuotientModel;
  11. use App\Entity\Booking\Attendance;
  12. use App\Entity\Booking\AttendanceBookingReason;
  13. use App\Entity\Booking\Course;
  14. use App\Entity\Booking\EducationalProject;
  15. use App\Entity\Booking\Event;
  16. use App\Entity\Booking\Examen;
  17. use App\Entity\Booking\OrganizationHoliday;
  18. use App\Entity\Core\BankAccount;
  19. use App\Entity\Core\ContactPoint;
  20. use App\Entity\Core\File;
  21. use App\Entity\Core\Notification;
  22. use App\Entity\Core\Tagg;
  23. use App\Entity\Core\Tips;
  24. use App\Entity\Donor\Donor;
  25. use App\Entity\Education\CriteriaNotation;
  26. use App\Entity\Education\Cycle;
  27. use App\Entity\Education\EducationCategory;
  28. use App\Entity\Education\EducationNotationConfig;
  29. use App\Entity\Education\EducationTiming;
  30. use App\Entity\Education\PeriodNotation;
  31. use App\Entity\Message\AbstractMessage;
  32. use App\Entity\Message\AbstractReport;
  33. use App\Entity\Message\Email;
  34. use App\Entity\Message\Mail;
  35. use App\Entity\Message\Sms;
  36. use App\Entity\Network\NetworkOrganization;
  37. use App\Entity\Organization\Traits\OrganizationComputedTraits;
  38. use App\Entity\Person\Commission;
  39. use App\Entity\Place\Place;
  40. use App\Entity\Product\Equipment;
  41. use App\Entity\Product\Intangible;
  42. use App\Entity\Reward\Reward;
  43. use App\Entity\Shop\Orders;
  44. use App\Entity\Traits\CreatedOnAndByTrait;
  45. use App\Enum\Organization\CategoryEnum;
  46. use App\Enum\Organization\LegalEnum;
  47. use App\Enum\Organization\OpcaEnum;
  48. use App\Enum\Organization\PrincipalTypeEnum;
  49. use App\Enum\Organization\SchoolCategoryEnum;
  50. use App\Enum\Organization\TypeEstablishmentDetailEnum;
  51. use App\Enum\Organization\TypeEstablishmentEnum;
  52. use App\Repository\Organization\OrganizationRepository;
  53. // use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  54. use App\State\Processor\Organization\OrganizationProcessor;
  55. use Doctrine\Common\Collections\ArrayCollection;
  56. use Doctrine\Common\Collections\Collection;
  57. use Doctrine\ORM\Mapping as ORM;
  58. use JetBrains\PhpStorm\Pure;
  59. /**
  60. * Structure, organisation.
  61. *
  62. * Security :
  63. *
  64. * * @see \App\Doctrine\Organization\CurrentOrganizationExtension
  65. */
  66. #[ApiResource(
  67. operations: [
  68. new Get(security: 'object.getId() == user.getOrganization().getId()'),
  69. ],
  70. processor: OrganizationProcessor::class,
  71. )]
  72. // #[Auditable]
  73. #[ORM\Entity(repositoryClass: OrganizationRepository::class)]
  74. class Organization
  75. {
  76. use CreatedOnAndByTrait;
  77. use OrganizationComputedTraits;
  78. #[ORM\Id]
  79. #[ORM\Column]
  80. #[ORM\GeneratedValue]
  81. private ?int $id = null;
  82. #[ORM\Column(length: 128, nullable: false)]
  83. public string $name;
  84. #[ORM\Column(length: 128)]
  85. private string $identifier;
  86. #[ORM\Column(length: 50, nullable: true, enumType: LegalEnum::class)]
  87. private ?LegalEnum $legalStatus = null;
  88. #[ORM\Column(length: 255, nullable: false, enumType: PrincipalTypeEnum::class)]
  89. private PrincipalTypeEnum $principalType;
  90. #[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'])]
  91. private ?Settings $settings = null;
  92. /** @var Collection<int, Access> */
  93. #[ORM\OneToMany(targetEntity: Access::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  94. private Collection $accesses;
  95. /** @var Collection<int, NetworkOrganization> */
  96. #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
  97. private Collection $networkOrganizations;
  98. /** @var Collection<int, NetworkOrganization> */
  99. #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'parent', cascade: ['persist', 'remove'], orphanRemoval: true)]
  100. private Collection $networkOrganizationChildren;
  101. /** @var Collection<int, EducationNotationConfig> */
  102. #[ORM\OneToMany(targetEntity: EducationNotationConfig::class, mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
  103. private Collection $educationNotationConfigs;
  104. #[ORM\OneToOne(targetEntity: Parameters::class, inversedBy: 'organization', cascade: ['persist'])]
  105. #[ORM\JoinColumn(nullable: false)]
  106. private Parameters $parameters;
  107. #[ORM\OneToOne(mappedBy: 'organization', cascade: ['persist', 'remove'], orphanRemoval: true)]
  108. private ?BillingSetting $billingSetting = null;
  109. #[ORM\Column(type: 'text', nullable: true)]
  110. private ?string $description = null;
  111. // TODO: utile ce champs? ou c'est juste un doublon du champs 'createDate'?
  112. #[ORM\Column(type: 'date', nullable: true)]
  113. private ?\DateTimeInterface $creationDate = null;
  114. #[ORM\Column(type: 'date', nullable: true)]
  115. private ?\DateTimeInterface $declarationDate = null;
  116. #[ORM\Column(length: 14, nullable: true)]
  117. private ?string $siretNumber = null;
  118. #[ORM\Column(length: 10, nullable: true)]
  119. private ?string $waldecNumber = null;
  120. #[ORM\Column(length: 255, nullable: true)]
  121. private ?string $volumeAndFolioNumber = null;
  122. #[ORM\Column(length: 5, nullable: true)]
  123. private ?string $apeNumber = null;
  124. #[ORM\Column(length: 50, nullable: true)]
  125. private ?string $tvaNumber = null;
  126. #[ORM\Column(length: 40, nullable: true)]
  127. private ?string $otherType = null;
  128. #[ORM\Column(length: 80, nullable: true)]
  129. private ?string $acronym = null;
  130. #[ORM\Column(length: 255, nullable: true)]
  131. private ?string $facebook = null;
  132. #[ORM\Column(length: 255, nullable: true)]
  133. private ?string $twitter = null;
  134. #[ORM\Column(length: 255, nullable: true)]
  135. private ?string $youtube = null;
  136. #[ORM\Column(length: 255, nullable: true)]
  137. private ?string $instagram = null;
  138. #[ORM\Column(length: 35, nullable: true)]
  139. private ?string $collectiveAgreement = null;
  140. #[ORM\Column(length: 50, nullable: true, enumType: OpcaEnum::class)]
  141. private ?OpcaEnum $opca = null;
  142. #[ORM\Column(length: 35, nullable: true)]
  143. private ?string $icomNumber = null;
  144. #[ORM\Column(length: 35, nullable: true)]
  145. private ?string $urssafNumber = null;
  146. #[ORM\Column(length: 20, nullable: true)]
  147. private ?string $youngApproval = null;
  148. #[ORM\Column(length: 20, nullable: true)]
  149. private ?string $trainingApproval = null;
  150. #[ORM\Column(length: 50, nullable: true)]
  151. private ?string $otherApproval = null;
  152. #[ORM\Column(length: 35, nullable: true)]
  153. private ?string $prefectureName = null;
  154. #[ORM\Column(length: 20, nullable: true)]
  155. private ?string $prefectureNumber = null;
  156. #[ORM\Column(length: 50, nullable: true, enumType: CategoryEnum::class)]
  157. private ?CategoryEnum $category = null;
  158. #[ORM\Column(length: 50, nullable: true, enumType: SchoolCategoryEnum::class)]
  159. private ?SchoolCategoryEnum $schoolCategory = null;
  160. #[ORM\Column(length: 50, nullable: true, enumType: TypeEstablishmentEnum::class)]
  161. private ?TypeEstablishmentEnum $typeEstablishment = null;
  162. #[ORM\Column(length: 50, nullable: true, enumType: TypeEstablishmentDetailEnum::class)]
  163. private ?TypeEstablishmentDetailEnum $typeEstablishmentDetail = null;
  164. #[ORM\Column(nullable: true)]
  165. private ?float $budget = null;
  166. #[ORM\Column(nullable: true)]
  167. private ?bool $isPedagogicIsPrincipalActivity = null;
  168. #[ORM\Column(nullable: true)]
  169. private ?float $pedagogicBudget = null;
  170. #[ORM\Column(nullable: true)]
  171. private ?bool $isPerformanceContractor = null;
  172. #[ORM\Column(length: 20, nullable: true)]
  173. private ?string $ffecApproval = null;
  174. #[ORM\Column]
  175. private bool $portailVisibility = true;
  176. #[ORM\Column(nullable: true)]
  177. private ?int $cmsId = null;
  178. #[ORM\ManyToOne(inversedBy: 'organizationLogos')]
  179. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  180. private ?File $logo = null;
  181. #[ORM\ManyToOne(inversedBy: 'organizationImages')]
  182. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  183. private ?File $image = null;
  184. /** @var Collection<int, TypeOfPractice> */
  185. #[ORM\ManyToMany(targetEntity: TypeOfPractice::class, mappedBy: 'organizations')]
  186. private Collection $typeOfPractices;
  187. #[ORM\Column(nullable: true)]
  188. private ?string $otherPractice = null;
  189. /**
  190. * orphanRemoval: on ne conserve pas un contact point qui n'est plus lié à aucune organisation ou person.
  191. *
  192. * @var Collection<int, ContactPoint>
  193. */
  194. #[ORM\ManyToMany(targetEntity: ContactPoint::class, mappedBy: 'organization', cascade: ['persist'], orphanRemoval: true)]
  195. #[ORM\OrderBy(['id' => 'ASC'])]
  196. private Collection $contactPoints;
  197. /**
  198. * orphanRemoval: on ne conserve pas un contact point qui n'est plus lié à aucune organisation ou person.
  199. *
  200. * @var Collection<int, BankAccount>
  201. */
  202. #[ORM\ManyToMany(targetEntity: BankAccount::class, inversedBy: 'organization', cascade: ['persist'], orphanRemoval: true)]
  203. #[ORM\JoinColumn(name: 'organization_id', referencedColumnName: 'id', unique: true)]
  204. #[ORM\InverseJoinColumn(name: 'bankAccount_id', referencedColumnName: 'id')]
  205. private Collection $bankAccounts;
  206. /** @var Collection<int, OrganizationAddressPostal> */
  207. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationAddressPostal::class, cascade: ['persist', 'remove'])]
  208. #[ORM\OrderBy(['id' => 'ASC'])]
  209. private Collection $organizationAddressPostals;
  210. /** @var Collection<int, OrganizationLicence> */
  211. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationLicence::class, cascade: ['persist', 'remove'])]
  212. private Collection $organizationLicences;
  213. /** @var Collection<int, OrganizationArticle> */
  214. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationArticle::class, cascade: ['persist', 'remove'])]
  215. private Collection $organizationArticles;
  216. /** @var Collection<int, Cycle> */
  217. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Cycle::class, cascade: ['persist', 'remove'])]
  218. private Collection $cycles;
  219. /** @var Collection<int, EducationTiming> */
  220. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationTiming::class, cascade: ['persist', 'remove'])]
  221. private Collection $educationTimings;
  222. /** @var Collection<int, Subdomain> */
  223. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Subdomain::class, cascade: ['persist', 'remove'])]
  224. private Collection $subdomains;
  225. #[ORM\ManyToOne(inversedBy: 'organizationContacts')]
  226. #[ORM\JoinColumn(referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  227. private ?Access $contactPerson;
  228. /** @var Collection<int, OrganizationHoliday> */
  229. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: OrganizationHoliday::class, cascade: ['persist', 'remove'])]
  230. private Collection $holidays;
  231. /** @var Collection<int, Course> */
  232. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Course::class, cascade: ['persist', 'remove'])]
  233. private Collection $courses;
  234. /** @var Collection<int, EducationalProject> */
  235. #[ORM\OneToMany(targetEntity: EducationalProject::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  236. private Collection $educationalProjects;
  237. /** @var Collection<int, Event> */
  238. #[ORM\OneToMany(targetEntity: Event::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  239. private Collection $events;
  240. /** @var Collection<int, Examen> */
  241. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: Examen::class, cascade: ['persist', 'remove'])]
  242. private Collection $examens;
  243. /** @var Collection<int, CriteriaNotation> */
  244. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: CriteriaNotation::class, cascade: ['persist', 'remove'])]
  245. private Collection $critereNotations;
  246. /** @var Collection<int, EducationCategory> */
  247. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: EducationCategory::class, cascade: ['persist', 'remove'])]
  248. private Collection $educationCategories;
  249. /** @var Collection<int, PeriodNotation> */
  250. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: PeriodNotation::class, cascade: ['persist', 'remove'])]
  251. private Collection $periodNotations;
  252. /** @var Collection<int, File> */
  253. #[ORM\OneToMany(mappedBy: 'organization', targetEntity: File::class, cascade: ['persist', 'remove'])]
  254. private Collection $files;
  255. /** @var Collection<int, Notification> */
  256. #[ORM\OneToMany(mappedBy: 'recipientOrganization', targetEntity: Notification::class, cascade: ['persist', 'remove'])]
  257. private Collection $notifications;
  258. /** @var Collection<int, Email> */
  259. #[ORM\OneToMany(targetEntity: Email::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  260. private Collection $emails;
  261. /** @var Collection<int, Mail> */
  262. #[ORM\OneToMany(targetEntity: Mail::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  263. private Collection $mails;
  264. /** @var Collection<int, Sms> */
  265. #[ORM\OneToMany(targetEntity: Sms::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  266. private Collection $sms;
  267. /** @var Collection<int, Activity> */
  268. #[ORM\OneToMany(targetEntity: Activity::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  269. private Collection $activities;
  270. /** @var Collection<int, Jury> */
  271. #[ORM\OneToMany(targetEntity: Jury::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  272. private Collection $juries;
  273. /** @var Collection<int, Commission> */
  274. #[ORM\OneToMany(targetEntity: Commission::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  275. private Collection $commissions;
  276. /** @var Collection<int, Place> */
  277. #[ORM\OneToMany(targetEntity: Place::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  278. private Collection $places;
  279. /** @var Collection<int, Attendance> */
  280. #[ORM\OneToMany(targetEntity: Attendance::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  281. private Collection $attendances;
  282. /** @var Collection<int, Equipment> */
  283. #[ORM\OneToMany(targetEntity: Equipment::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  284. private Collection $equipments;
  285. /** @var Collection<int, Intangible> */
  286. #[ORM\OneToMany(targetEntity: Intangible::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  287. private Collection $intangibles;
  288. /** @var Collection<int, Donor> */
  289. #[ORM\OneToMany(targetEntity: Donor::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  290. private Collection $donors;
  291. /** @var Collection<int, Reward> */
  292. #[ORM\OneToMany(targetEntity: Reward::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  293. private Collection $rewards;
  294. // #[ORM\OneToOne()]
  295. // private OnlineRegistrationSettings $onlineRegistrationSettings;
  296. /** @var Collection<int, Tagg> */
  297. #[ORM\ManyToMany(targetEntity: Tagg::class, inversedBy: 'organizations', cascade: ['persist'])]
  298. #[ORM\JoinTable(name: 'tag_organization')]
  299. #[ORM\JoinColumn(name: 'organization_id', referencedColumnName: 'id')]
  300. #[ORM\InverseJoinColumn(name: 'tag_id', referencedColumnName: 'id')]
  301. private Collection $tags;
  302. /** @var Collection<int, NetworkOrganization> */
  303. #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  304. protected Collection $network;
  305. /** @var Collection<int, NetworkOrganization> */
  306. #[ORM\OneToMany(targetEntity: NetworkOrganization::class, mappedBy: 'parent', cascade: ['persist', 'remove'])]
  307. protected Collection $networkChild;
  308. #[ORM\OneToOne(targetEntity: BillingExportSetting::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  309. protected ?BillingExportSetting $billingExportSetting;
  310. /** @var Collection<int, Access> */
  311. #[ORM\OneToMany(targetEntity: Access::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  312. protected Collection $access;
  313. /** @var Collection<int, AbstractMessage> */
  314. #[ORM\OneToMany(targetEntity: AbstractMessage::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  315. protected Collection $messages;
  316. #[ORM\OneToOne(targetEntity: OnlineRegistrationSettings::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  317. protected ?OnlineRegistrationSettings $onlineRegistrationSettings;
  318. /** @var Collection<int, CotisationByYear> */
  319. #[ORM\OneToMany(targetEntity: CotisationByYear::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  320. protected Collection $cotisationByYears;
  321. /** @var Collection<int, AttendanceBookingReason> */
  322. #[ORM\OneToMany(targetEntity: AttendanceBookingReason::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  323. protected Collection $attendanceBookingReasons;
  324. /** @var Collection<int, Cycle> */
  325. #[ORM\OneToMany(targetEntity: Cycle::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  326. protected Collection $educationCurriculumPacks;
  327. /** @var Collection<int, FamilyQuotientModel> */
  328. #[ORM\OneToMany(targetEntity: FamilyQuotientModel::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  329. protected Collection $familyQuotientModels;
  330. /** @var Collection<int, BillSchedule> */
  331. #[ORM\OneToMany(targetEntity: BillSchedule::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  332. protected Collection $billSchedules;
  333. /** @var Collection<int, AbstractReport> */
  334. #[ORM\OneToMany(targetEntity: AbstractReport::class, mappedBy: 'organization', cascade: ['persist', 'remove'])]
  335. private Collection $reports;
  336. /** @var Collection<int, Orders> */
  337. #[ORM\OneToMany(targetEntity: Orders::class, mappedBy: 'organization', cascade: [], orphanRemoval: true)]
  338. protected Collection $orders;
  339. /**
  340. * orphanRemoval: on ne conserve pas un tips qui n'est plus lié à aucune organisation ou access.
  341. *
  342. * @var Collection<int, Tips>
  343. */
  344. #[ORM\ManyToMany(targetEntity: Tips::class, inversedBy: 'organizations', cascade: ['persist'], orphanRemoval: false)]
  345. #[ORM\JoinTable(name: 'organization_tips')]
  346. #[ORM\JoinColumn(name: 'organization_id')]
  347. protected Collection $tips;
  348. #[Pure]
  349. public function __construct()
  350. {
  351. $this->accesses = new ArrayCollection();
  352. $this->networkOrganizations = new ArrayCollection();
  353. $this->networkOrganizationChildren = new ArrayCollection();
  354. $this->typeOfPractices = new ArrayCollection();
  355. $this->contactPoints = new ArrayCollection();
  356. $this->bankAccounts = new ArrayCollection();
  357. $this->organizationAddressPostals = new ArrayCollection();
  358. $this->organizationLicences = new ArrayCollection();
  359. $this->organizationArticles = new ArrayCollection();
  360. $this->cycles = new ArrayCollection();
  361. $this->educationTimings = new ArrayCollection();
  362. $this->educationNotationConfigs = new ArrayCollection();
  363. $this->subdomains = new ArrayCollection();
  364. $this->holidays = new ArrayCollection();
  365. $this->courses = new ArrayCollection();
  366. $this->educationalProjects = new ArrayCollection();
  367. $this->events = new ArrayCollection();
  368. $this->examens = new ArrayCollection();
  369. $this->critereNotations = new ArrayCollection();
  370. $this->educationCategories = new ArrayCollection();
  371. $this->periodNotations = new ArrayCollection();
  372. $this->files = new ArrayCollection();
  373. $this->notifications = new ArrayCollection();
  374. $this->emails = new ArrayCollection();
  375. $this->mails = new ArrayCollection();
  376. $this->sms = new ArrayCollection();
  377. $this->activities = new ArrayCollection();
  378. $this->juries = new ArrayCollection();
  379. $this->commissions = new ArrayCollection();
  380. $this->places = new ArrayCollection();
  381. $this->attendances = new ArrayCollection();
  382. $this->equipments = new ArrayCollection();
  383. $this->intangibles = new ArrayCollection();
  384. $this->donors = new ArrayCollection();
  385. $this->tags = new ArrayCollection();
  386. $this->rewards = new ArrayCollection();
  387. $this->network = new ArrayCollection();
  388. $this->networkChild = new ArrayCollection();
  389. $this->access = new ArrayCollection();
  390. $this->messages = new ArrayCollection();
  391. $this->cotisationByYears = new ArrayCollection();
  392. $this->attendanceBookingReasons = new ArrayCollection();
  393. $this->educationCurriculumPacks = new ArrayCollection();
  394. $this->familyQuotientModels = new ArrayCollection();
  395. $this->billSchedules = new ArrayCollection();
  396. $this->orders = new ArrayCollection();
  397. $this->tips = new ArrayCollection();
  398. }
  399. public function getId(): ?int
  400. {
  401. return $this->id;
  402. }
  403. public function getName(): string
  404. {
  405. return $this->name;
  406. }
  407. public function setName(string $name): self
  408. {
  409. $this->name = $name;
  410. return $this;
  411. }
  412. public function getIdentifier(): string
  413. {
  414. return $this->identifier;
  415. }
  416. public function setIdentifier(string $identifier): self
  417. {
  418. $this->identifier = $identifier;
  419. return $this;
  420. }
  421. public function getLegalStatus(): ?LegalEnum
  422. {
  423. return $this->legalStatus;
  424. }
  425. public function setLegalStatus(?LegalEnum $legalStatus): self
  426. {
  427. $this->legalStatus = $legalStatus;
  428. return $this;
  429. }
  430. public function getPrincipalType(): ?PrincipalTypeEnum
  431. {
  432. return $this->principalType;
  433. }
  434. public function setPrincipalType(?PrincipalTypeEnum $principalType): self
  435. {
  436. $this->principalType = $principalType;
  437. return $this;
  438. }
  439. public function getSettings(): Settings
  440. {
  441. return $this->settings;
  442. }
  443. public function setSettings(Settings $settings): self
  444. {
  445. $this->settings = $settings;
  446. // set the owning side of the relation
  447. $settings->setOrganization($this);
  448. return $this;
  449. }
  450. public function getAccesses(): Collection
  451. {
  452. return $this->accesses;
  453. }
  454. public function addAccess(Access $access): self
  455. {
  456. if (!$this->access->contains($access)) {
  457. $this->access[] = $access;
  458. $access->setOrganization($this);
  459. }
  460. return $this;
  461. }
  462. public function removeAccess(Access $access): self
  463. {
  464. if ($this->access->removeElement($access)) {
  465. $access->setOrganization(null);
  466. }
  467. return $this;
  468. }
  469. public function getNetworkOrganizations(): Collection
  470. {
  471. return $this->networkOrganizations;
  472. }
  473. public function addNetworkOrganization(NetworkOrganization $networkOrganization): self
  474. {
  475. if (!$this->networkOrganizations->contains($networkOrganization)) {
  476. $this->networkOrganizations[] = $networkOrganization;
  477. $networkOrganization->setOrganization($this);
  478. }
  479. return $this;
  480. }
  481. public function removeNetworkOrganization(NetworkOrganization $networkOrganization): self
  482. {
  483. if ($this->networkOrganizations->removeElement($networkOrganization)) {
  484. // set the owning side to null (unless already changed)
  485. if ($networkOrganization->getOrganization() === $this) {
  486. $networkOrganization->setOrganization(null);
  487. }
  488. }
  489. return $this;
  490. }
  491. public function getNetworkOrganizationChildren(): Collection
  492. {
  493. return $this->networkOrganizationChildren;
  494. }
  495. public function addNetworkOrganizationChild(NetworkOrganization $networkOrganizationChild): self
  496. {
  497. if (!$this->networkOrganizationChildren->contains($networkOrganizationChild)) {
  498. $this->networkOrganizationChildren[] = $networkOrganizationChild;
  499. $networkOrganizationChild->setParent($this);
  500. }
  501. return $this;
  502. }
  503. public function removeNetworkOrganizationChild(NetworkOrganization $networkOrganizationChild): self
  504. {
  505. if ($this->networkOrganizationChildren->removeElement($networkOrganizationChild)) {
  506. // set the owning side to null (unless already changed)
  507. if ($networkOrganizationChild->getParent() === $this) {
  508. $networkOrganizationChild->setParent(null);
  509. }
  510. }
  511. return $this;
  512. }
  513. public function getParameters(): Parameters
  514. {
  515. return $this->parameters;
  516. }
  517. public function setParameters(Parameters $parameters): self
  518. {
  519. $this->parameters = $parameters;
  520. return $this;
  521. }
  522. public function getLogo(): ?File
  523. {
  524. return $this->logo;
  525. }
  526. public function setLogo(?File $logo): void
  527. {
  528. $this->logo = $logo;
  529. }
  530. public function getBillingSetting(): BillingSetting
  531. {
  532. return $this->billingSetting;
  533. }
  534. public function setBillingSetting(BillingSetting $billingSetting): self
  535. {
  536. $this->billingSetting = $billingSetting;
  537. return $this;
  538. }
  539. public function getDescription(): ?string
  540. {
  541. return $this->description;
  542. }
  543. public function setDescription(?string $description): self
  544. {
  545. $this->description = $description;
  546. return $this;
  547. }
  548. public function getCreationDate(): ?\DateTimeInterface
  549. {
  550. return $this->creationDate;
  551. }
  552. public function setCreationDate(?\DateTimeInterface $creationDate): self
  553. {
  554. $this->creationDate = $creationDate;
  555. return $this;
  556. }
  557. public function getDeclarationDate(): ?\DateTimeInterface
  558. {
  559. return $this->declarationDate;
  560. }
  561. public function setDeclarationDate(?\DateTimeInterface $declarationDate): self
  562. {
  563. $this->declarationDate = $declarationDate;
  564. return $this;
  565. }
  566. public function getSiretNumber(): ?string
  567. {
  568. return $this->siretNumber;
  569. }
  570. public function setSiretNumber(?string $siretNumber): self
  571. {
  572. $this->siretNumber = $siretNumber;
  573. return $this;
  574. }
  575. public function getWaldecNumber(): ?string
  576. {
  577. return $this->waldecNumber;
  578. }
  579. public function setWaldecNumber(?string $waldecNumber): self
  580. {
  581. $this->waldecNumber = $waldecNumber;
  582. return $this;
  583. }
  584. public function getVolumeAndFolioNumber(): ?string
  585. {
  586. return $this->volumeAndFolioNumber;
  587. }
  588. public function setVolumeAndFolioNumber(?string $volumeAndFolioNumber): self
  589. {
  590. $this->volumeAndFolioNumber = $volumeAndFolioNumber;
  591. return $this;
  592. }
  593. public function getApeNumber(): ?string
  594. {
  595. return $this->apeNumber;
  596. }
  597. public function setApeNumber(?string $apeNumber): self
  598. {
  599. $this->apeNumber = $apeNumber;
  600. return $this;
  601. }
  602. public function getTvaNumber(): ?string
  603. {
  604. return $this->tvaNumber;
  605. }
  606. public function setTvaNumber(?string $tvaNumber): self
  607. {
  608. $this->tvaNumber = $tvaNumber;
  609. return $this;
  610. }
  611. public function getOtherType(): ?string
  612. {
  613. return $this->otherType;
  614. }
  615. public function setOtherType(?string $otherType): self
  616. {
  617. $this->otherType = $otherType;
  618. return $this;
  619. }
  620. public function getAcronym(): ?string
  621. {
  622. return $this->acronym;
  623. }
  624. public function setAcronym(?string $acronym): self
  625. {
  626. $this->acronym = $acronym;
  627. return $this;
  628. }
  629. public function getFacebook(): ?string
  630. {
  631. return $this->facebook;
  632. }
  633. public function setFacebook(?string $facebook): self
  634. {
  635. $this->facebook = $facebook;
  636. return $this;
  637. }
  638. public function getTwitter(): ?string
  639. {
  640. return $this->twitter;
  641. }
  642. public function setTwitter(?string $twitter): self
  643. {
  644. $this->twitter = $twitter;
  645. return $this;
  646. }
  647. public function getYoutube(): ?string
  648. {
  649. return $this->youtube;
  650. }
  651. public function setYoutube(?string $youtube): self
  652. {
  653. $this->youtube = $youtube;
  654. return $this;
  655. }
  656. public function getInstagram(): ?string
  657. {
  658. return $this->instagram;
  659. }
  660. public function setInstagram(?string $instagram): self
  661. {
  662. $this->instagram = $instagram;
  663. return $this;
  664. }
  665. public function getCollectiveAgreement(): ?string
  666. {
  667. return $this->collectiveAgreement;
  668. }
  669. public function setCollectiveAgreement(?string $collectiveAgreement): self
  670. {
  671. $this->collectiveAgreement = $collectiveAgreement;
  672. return $this;
  673. }
  674. public function getOpca(): ?OpcaEnum
  675. {
  676. return $this->opca;
  677. }
  678. public function setOpca(?OpcaEnum $opca): self
  679. {
  680. $this->opca = $opca;
  681. return $this;
  682. }
  683. public function getIcomNumber(): ?string
  684. {
  685. return $this->icomNumber;
  686. }
  687. public function setIcomNumber(?string $icomNumber): self
  688. {
  689. $this->icomNumber = $icomNumber;
  690. return $this;
  691. }
  692. public function getUrssafNumber(): ?string
  693. {
  694. return $this->urssafNumber;
  695. }
  696. public function setUrssafNumber(?string $urssafNumber): self
  697. {
  698. $this->urssafNumber = $urssafNumber;
  699. return $this;
  700. }
  701. public function getYoungApproval(): ?string
  702. {
  703. return $this->youngApproval;
  704. }
  705. public function setYoungApproval(?string $youngApproval): self
  706. {
  707. $this->youngApproval = $youngApproval;
  708. return $this;
  709. }
  710. public function getTrainingApproval(): ?string
  711. {
  712. return $this->trainingApproval;
  713. }
  714. public function setTrainingApproval(?string $trainingApproval): self
  715. {
  716. $this->trainingApproval = $trainingApproval;
  717. return $this;
  718. }
  719. public function getOtherApproval(): ?string
  720. {
  721. return $this->otherApproval;
  722. }
  723. public function setOtherApproval(?string $otherApproval): self
  724. {
  725. $this->otherApproval = $otherApproval;
  726. return $this;
  727. }
  728. public function getPrefectureName(): ?string
  729. {
  730. return $this->prefectureName;
  731. }
  732. public function setPrefectureName(?string $prefectureName): self
  733. {
  734. $this->prefectureName = $prefectureName;
  735. return $this;
  736. }
  737. public function getPrefectureNumber(): ?string
  738. {
  739. return $this->prefectureNumber;
  740. }
  741. public function setPrefectureNumber(?string $prefectureNumber): self
  742. {
  743. $this->prefectureNumber = $prefectureNumber;
  744. return $this;
  745. }
  746. public function getCategory(): ?CategoryEnum
  747. {
  748. return $this->category;
  749. }
  750. public function setCategory(?CategoryEnum $category): self
  751. {
  752. $this->category = $category;
  753. return $this;
  754. }
  755. public function getSchoolCategory(): ?SchoolCategoryEnum
  756. {
  757. return $this->schoolCategory;
  758. }
  759. public function setSchoolCategory(?SchoolCategoryEnum $schoolCategory): self
  760. {
  761. $this->schoolCategory = $schoolCategory;
  762. return $this;
  763. }
  764. public function getTypeEstablishment(): ?TypeEstablishmentEnum
  765. {
  766. return $this->typeEstablishment;
  767. }
  768. public function setTypeEstablishment(?TypeEstablishmentEnum $typeEstablishment): self
  769. {
  770. $this->typeEstablishment = $typeEstablishment;
  771. return $this;
  772. }
  773. public function getTypeEstablishmentDetail(): ?TypeEstablishmentDetailEnum
  774. {
  775. return $this->typeEstablishmentDetail;
  776. }
  777. public function setTypeEstablishmentDetail(?TypeEstablishmentDetailEnum $typeEstablishmentDetail): self
  778. {
  779. $this->typeEstablishmentDetail = $typeEstablishmentDetail;
  780. return $this;
  781. }
  782. public function getBudget(): ?float
  783. {
  784. return $this->budget;
  785. }
  786. public function setBudget(?float $budget): self
  787. {
  788. $this->budget = $budget;
  789. return $this;
  790. }
  791. public function getIsPedagogicIsPrincipalActivity(): ?bool
  792. {
  793. return $this->isPedagogicIsPrincipalActivity;
  794. }
  795. public function setIsPedagogicIsPrincipalActivity(?bool $isPedagogicIsPrincipalActivity): self
  796. {
  797. $this->isPedagogicIsPrincipalActivity = $isPedagogicIsPrincipalActivity;
  798. return $this;
  799. }
  800. public function getPedagogicBudget(): ?float
  801. {
  802. return $this->pedagogicBudget;
  803. }
  804. public function setPedagogicBudget(?float $pedagogicBudget): self
  805. {
  806. $this->pedagogicBudget = $pedagogicBudget;
  807. return $this;
  808. }
  809. public function getIsPerformanceContractor(): ?bool
  810. {
  811. return $this->isPerformanceContractor;
  812. }
  813. public function setIsPerformanceContractor(?bool $isPerformanceContractor): self
  814. {
  815. $this->isPerformanceContractor = $isPerformanceContractor;
  816. return $this;
  817. }
  818. public function getFfecApproval(): ?string
  819. {
  820. return $this->ffecApproval;
  821. }
  822. public function setFfecApproval(?string $ffecApproval): self
  823. {
  824. $this->ffecApproval = $ffecApproval;
  825. return $this;
  826. }
  827. public function getPortailVisibility(): bool
  828. {
  829. return $this->portailVisibility;
  830. }
  831. public function setPortailVisibility(bool $portailVisibility): self
  832. {
  833. $this->portailVisibility = $portailVisibility;
  834. return $this;
  835. }
  836. public function getCmsId(): ?int
  837. {
  838. return $this->cmsId;
  839. }
  840. public function setCmsId(?int $cmsId): self
  841. {
  842. $this->cmsId = $cmsId;
  843. return $this;
  844. }
  845. public function setImage(?File $image): self
  846. {
  847. $this->image = $image;
  848. return $this;
  849. }
  850. public function getImage(): ?File
  851. {
  852. return $this->image;
  853. }
  854. public function getTypeOfPractices(): Collection
  855. {
  856. return $this->typeOfPractices;
  857. }
  858. public function addTypeOfPractice(TypeOfPractice $typeOfPractice): self
  859. {
  860. if (!$this->typeOfPractices->contains($typeOfPractice)) {
  861. $this->typeOfPractices[] = $typeOfPractice;
  862. $typeOfPractice->addOrganization($this);
  863. }
  864. return $this;
  865. }
  866. public function removeTypeOfPractice(TypeOfPractice $typeOfPractice): self
  867. {
  868. if ($this->typeOfPractices->removeElement($typeOfPractice)) {
  869. $typeOfPractice->removeOrganization($this);
  870. }
  871. return $this;
  872. }
  873. public function getOtherPractice(): ?string
  874. {
  875. return $this->otherPractice;
  876. }
  877. public function setOtherPractice(?string $otherPractice): self
  878. {
  879. $this->otherPractice = $otherPractice;
  880. return $this;
  881. }
  882. public function getContactPoints(): Collection
  883. {
  884. return $this->contactPoints;
  885. }
  886. public function addContactPoint(ContactPoint $contactPoint): self
  887. {
  888. if (!$this->contactPoints->contains($contactPoint)) {
  889. $this->contactPoints[] = $contactPoint;
  890. $contactPoint->addOrganization($this);
  891. }
  892. return $this;
  893. }
  894. public function removeContactPoint(ContactPoint $contactPoint): self
  895. {
  896. if ($this->contactPoints->removeElement($contactPoint)) {
  897. $contactPoint->removeOrganization($this);
  898. }
  899. return $this;
  900. }
  901. public function getBankAccounts(): Collection
  902. {
  903. return $this->bankAccounts;
  904. }
  905. public function addBankAccount(BankAccount $bankAccount): self
  906. {
  907. if (!$this->bankAccounts->contains($bankAccount)) {
  908. $this->bankAccounts[] = $bankAccount;
  909. $bankAccount->addOrganization($this);
  910. }
  911. return $this;
  912. }
  913. public function removeBankAccount(BankAccount $bankAccount): self
  914. {
  915. if ($this->bankAccounts->removeElement($bankAccount)) {
  916. $bankAccount->removeOrganization($this);
  917. }
  918. return $this;
  919. }
  920. public function getOrganizationAddressPostals(): Collection
  921. {
  922. return $this->organizationAddressPostals;
  923. }
  924. public function addOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
  925. {
  926. if (!$this->organizationAddressPostals->contains($organizationAddressPostal)) {
  927. $this->organizationAddressPostals[] = $organizationAddressPostal;
  928. $organizationAddressPostal->setOrganization($this);
  929. }
  930. return $this;
  931. }
  932. public function removeOrganizationAddressPostal(OrganizationAddressPostal $organizationAddressPostal): self
  933. {
  934. if ($this->organizationAddressPostals->removeElement($organizationAddressPostal)) {
  935. // set the owning side to null (unless already changed)
  936. if ($organizationAddressPostal->getOrganization() === $this) {
  937. $organizationAddressPostal->setOrganization(null);
  938. }
  939. }
  940. return $this;
  941. }
  942. public function getOrganizationLicences(): Collection
  943. {
  944. return $this->organizationLicences;
  945. }
  946. public function addOrganizationLicence(OrganizationLicence $organizationLicence): self
  947. {
  948. if (!$this->organizationLicences->contains($organizationLicence)) {
  949. $this->organizationLicences[] = $organizationLicence;
  950. $organizationLicence->setOrganization($this);
  951. }
  952. return $this;
  953. }
  954. public function removeOrganizationLicence(OrganizationLicence $organizationLicence): self
  955. {
  956. if ($this->organizationLicences->removeElement($organizationLicence)) {
  957. // set the owning side to null (unless already changed)
  958. if ($organizationLicence->getOrganization() === $this) {
  959. $organizationLicence->setOrganization(null);
  960. }
  961. }
  962. return $this;
  963. }
  964. public function getOrganizationArticles(): Collection
  965. {
  966. return $this->organizationArticles;
  967. }
  968. public function addOrganizationArticle(OrganizationArticle $organizationArticle): self
  969. {
  970. if (!$this->organizationArticles->contains($organizationArticle)) {
  971. $this->organizationArticles[] = $organizationArticle;
  972. $organizationArticle->setOrganization($this);
  973. }
  974. return $this;
  975. }
  976. public function removeOrganizationArticle(OrganizationArticle $organizationArticle): self
  977. {
  978. if ($this->organizationArticles->removeElement($organizationArticle)) {
  979. // set the owning side to null (unless already changed)
  980. if ($organizationArticle->getOrganization() === $this) {
  981. $organizationArticle->setOrganization(null);
  982. }
  983. }
  984. return $this;
  985. }
  986. public function addCycle(Cycle $cycle): self
  987. {
  988. if (!$this->cycles->contains($cycle)) {
  989. $this->cycles[] = $cycle;
  990. $cycle->setOrganization($this);
  991. }
  992. return $this;
  993. }
  994. public function removeCycle(Cycle $cycle): self
  995. {
  996. if ($this->cycles->removeElement($cycle)) {
  997. // set the owning side to null (unless already changed)
  998. if ($cycle->getOrganization() === $this) {
  999. $cycle->setOrganization(null);
  1000. }
  1001. }
  1002. return $this;
  1003. }
  1004. public function getCycles(): Collection
  1005. {
  1006. return $this->cycles;
  1007. }
  1008. public function addEducationNotationConfig(EducationNotationConfig $educationNotationConfig): self
  1009. {
  1010. if (!$this->educationNotationConfigs->contains($educationNotationConfig)) {
  1011. $this->educationNotationConfigs[] = $educationNotationConfig;
  1012. $educationNotationConfig->setOrganization($this);
  1013. }
  1014. return $this;
  1015. }
  1016. public function removeEducationNotationConfig(EducationNotationConfig $educationNotationConfig): self
  1017. {
  1018. if ($this->educationNotationConfigs->removeElement($educationNotationConfig)) {
  1019. // set the owning side to null (unless already changed)
  1020. if ($educationNotationConfig->getOrganization() === $this) {
  1021. $educationNotationConfig->setOrganization(null);
  1022. }
  1023. }
  1024. return $this;
  1025. }
  1026. public function getEducationNotationConfigs(): Collection
  1027. {
  1028. return $this->educationNotationConfigs;
  1029. }
  1030. public function addEducationTiming(EducationTiming $educationTiming): self
  1031. {
  1032. if (!$this->educationTimings->contains($educationTiming)) {
  1033. $this->educationTimings[] = $educationTiming;
  1034. $educationTiming->setOrganization($this);
  1035. }
  1036. return $this;
  1037. }
  1038. public function removeEducationTiming(EducationTiming $educationTiming): self
  1039. {
  1040. if ($this->educationTimings->removeElement($educationTiming)) {
  1041. // set the owning side to null (unless already changed)
  1042. if ($educationTiming->getOrganization() === $this) {
  1043. $educationTiming->setOrganization(null);
  1044. }
  1045. }
  1046. return $this;
  1047. }
  1048. public function getEducationTimings(): Collection
  1049. {
  1050. return $this->educationTimings;
  1051. }
  1052. public function getSubdomains(): Collection
  1053. {
  1054. return $this->subdomains;
  1055. }
  1056. public function addSubdomain(Subdomain $subdomain): self
  1057. {
  1058. if (!$this->subdomains->contains($subdomain)) {
  1059. $this->subdomains[] = $subdomain;
  1060. $subdomain->setOrganization($this);
  1061. }
  1062. return $this;
  1063. }
  1064. public function getContactPerson(): ?Access
  1065. {
  1066. return $this->contactPerson;
  1067. }
  1068. public function setContactPerson(?Access $contactPerson): self
  1069. {
  1070. $this->contactPerson = $contactPerson;
  1071. return $this;
  1072. }
  1073. /**
  1074. * @return Collection<int, OrganizationHoliday>
  1075. */
  1076. public function getHolidays(): Collection
  1077. {
  1078. return $this->holidays;
  1079. }
  1080. public function addHoliday(OrganizationHoliday $holiday): self
  1081. {
  1082. if (!$this->holidays->contains($holiday)) {
  1083. $this->holidays[] = $holiday;
  1084. $holiday->setOrganization($this);
  1085. }
  1086. return $this;
  1087. }
  1088. public function removeHoliday(OrganizationHoliday $holiday): self
  1089. {
  1090. if ($this->holidays->removeElement($holiday)) {
  1091. // set the owning side to null (unless already changed)
  1092. if ($holiday->getOrganization() === $this) {
  1093. $holiday->setOrganization(null);
  1094. }
  1095. }
  1096. return $this;
  1097. }
  1098. /**
  1099. * @return Collection<int, Course>
  1100. */
  1101. public function getCourses(): Collection
  1102. {
  1103. return $this->courses;
  1104. }
  1105. public function addCourse(Course $course): self
  1106. {
  1107. if (!$this->courses->contains($course)) {
  1108. $this->courses[] = $course;
  1109. $course->setOrganization($this);
  1110. }
  1111. return $this;
  1112. }
  1113. public function removeCourse(Course $course): self
  1114. {
  1115. if ($this->courses->removeElement($course)) {
  1116. // set the owning side to null (unless already changed)
  1117. if ($course->getOrganization() === $this) {
  1118. $course->setOrganization(null);
  1119. }
  1120. }
  1121. return $this;
  1122. }
  1123. /**
  1124. * @return Collection<int, EducationalProject>
  1125. */
  1126. public function getEducationalProjects(): Collection
  1127. {
  1128. return $this->educationalProjects;
  1129. }
  1130. public function addEducationalProject(EducationalProject $educationalProject): self
  1131. {
  1132. if (!$this->educationalProjects->contains($educationalProject)) {
  1133. $this->educationalProjects[] = $educationalProject;
  1134. $educationalProject->setOrganization($this);
  1135. }
  1136. return $this;
  1137. }
  1138. public function removeEducationalProject(EducationalProject $educationalProject): self
  1139. {
  1140. if ($this->educationalProjects->removeElement($educationalProject)) {
  1141. // set the owning side to null (unless already changed)
  1142. if ($educationalProject->getOrganization() === $this) {
  1143. $educationalProject->setOrganization(null);
  1144. }
  1145. }
  1146. return $this;
  1147. }
  1148. /**
  1149. * @return Collection<int, Event>
  1150. */
  1151. public function getEvents(): Collection
  1152. {
  1153. return $this->events;
  1154. }
  1155. public function addEvent(Event $event): self
  1156. {
  1157. if (!$this->events->contains($event)) {
  1158. $this->events[] = $event;
  1159. $event->setOrganization($this);
  1160. }
  1161. return $this;
  1162. }
  1163. public function removeEvent(Event $event): self
  1164. {
  1165. if ($this->events->removeElement($event)) {
  1166. // set the owning side to null (unless already changed)
  1167. if ($event->getOrganization() === $this) {
  1168. $event->setOrganization(null);
  1169. }
  1170. }
  1171. return $this;
  1172. }
  1173. /**
  1174. * @return Collection<int, Examen>
  1175. */
  1176. public function getExamens(): Collection
  1177. {
  1178. return $this->examens;
  1179. }
  1180. public function addExamen(Examen $examen): self
  1181. {
  1182. if (!$this->examens->contains($examen)) {
  1183. $this->examens[] = $examen;
  1184. $examen->setOrganization($this);
  1185. }
  1186. return $this;
  1187. }
  1188. public function removeExamen(Examen $examen): self
  1189. {
  1190. if ($this->examens->removeElement($examen)) {
  1191. // set the owning side to null (unless already changed)
  1192. if ($examen->getOrganization() === $this) {
  1193. $examen->setOrganization(null);
  1194. }
  1195. }
  1196. return $this;
  1197. }
  1198. /**
  1199. * @return Collection<int, CriteriaNotation>
  1200. */
  1201. public function getCritereNotations(): Collection
  1202. {
  1203. return $this->critereNotations;
  1204. }
  1205. public function addCritereNotation(CriteriaNotation $critereNotation): self
  1206. {
  1207. if (!$this->critereNotations->contains($critereNotation)) {
  1208. $this->critereNotations[] = $critereNotation;
  1209. $critereNotation->setOrganization($this);
  1210. }
  1211. return $this;
  1212. }
  1213. public function removeCritereNotation(CriteriaNotation $critereNotation): self
  1214. {
  1215. if ($this->critereNotations->removeElement($critereNotation)) {
  1216. // set the owning side to null (unless already changed)
  1217. if ($critereNotation->getOrganization() === $this) {
  1218. $critereNotation->setOrganization(null);
  1219. }
  1220. }
  1221. return $this;
  1222. }
  1223. /**
  1224. * @return Collection<int, EducationCategory>
  1225. */
  1226. public function getEducationCategories(): Collection
  1227. {
  1228. return $this->educationCategories;
  1229. }
  1230. public function addEducationCategory(EducationCategory $educationCategory): self
  1231. {
  1232. if (!$this->educationCategories->contains($educationCategory)) {
  1233. $this->educationCategories[] = $educationCategory;
  1234. $educationCategory->setOrganization($this);
  1235. }
  1236. return $this;
  1237. }
  1238. public function removeEducationCategory(EducationCategory $educationCategory): self
  1239. {
  1240. if ($this->educationCategories->removeElement($educationCategory)) {
  1241. // set the owning side to null (unless already changed)
  1242. if ($educationCategory->getOrganization() === $this) {
  1243. $educationCategory->setOrganization(null);
  1244. }
  1245. }
  1246. return $this;
  1247. }
  1248. /**
  1249. * @return Collection<int, PeriodNotation>
  1250. */
  1251. public function getPeriodNotations(): Collection
  1252. {
  1253. return $this->periodNotations;
  1254. }
  1255. public function addPeriodNotation(PeriodNotation $periodNotation): self
  1256. {
  1257. if (!$this->periodNotations->contains($periodNotation)) {
  1258. $this->periodNotations[] = $periodNotation;
  1259. $periodNotation->setOrganization($this);
  1260. }
  1261. return $this;
  1262. }
  1263. public function removePeriodNotation(PeriodNotation $periodNotation): self
  1264. {
  1265. if ($this->periodNotations->removeElement($periodNotation)) {
  1266. // set the owning side to null (unless already changed)
  1267. if ($periodNotation->getOrganization() === $this) {
  1268. $periodNotation->setOrganization(null);
  1269. }
  1270. }
  1271. return $this;
  1272. }
  1273. /**
  1274. * @return Collection<int, File>
  1275. */
  1276. public function getFiles(): Collection
  1277. {
  1278. return $this->files;
  1279. }
  1280. public function addFile(File $file): self
  1281. {
  1282. if (!$this->files->contains($file)) {
  1283. $this->files[] = $file;
  1284. $file->setOrganization($this);
  1285. }
  1286. return $this;
  1287. }
  1288. public function removeFile(File $file): self
  1289. {
  1290. if ($this->files->removeElement($file)) {
  1291. // set the owning side to null (unless already changed)
  1292. if ($file->getOrganization() === $this) {
  1293. $file->setOrganization(null);
  1294. }
  1295. }
  1296. return $this;
  1297. }
  1298. /**
  1299. * @return Collection<int, Notification>
  1300. */
  1301. public function getNotifications(): Collection
  1302. {
  1303. return $this->notifications;
  1304. }
  1305. public function addNotification(Notification $notification): self
  1306. {
  1307. if (!$this->notifications->contains($notification)) {
  1308. $this->notifications[] = $notification;
  1309. $notification->setRecipientOrganization($this);
  1310. }
  1311. return $this;
  1312. }
  1313. public function removeNotification(Notification $notification): self
  1314. {
  1315. if ($this->notifications->removeElement($notification)) {
  1316. // set the owning side to null (unless already changed)
  1317. if ($notification->getRecipientOrganization() === $this) {
  1318. $notification->setRecipientOrganization(null);
  1319. }
  1320. }
  1321. return $this;
  1322. }
  1323. /**
  1324. * @return Collection<int, Email>
  1325. */
  1326. public function getEmails(): Collection
  1327. {
  1328. return $this->emails;
  1329. }
  1330. /**
  1331. * @return Collection<int, Mail>
  1332. */
  1333. public function getMails(): Collection
  1334. {
  1335. return $this->mails;
  1336. }
  1337. /**
  1338. * @return Collection<int, Sms>
  1339. */
  1340. public function getSms(): Collection
  1341. {
  1342. return $this->sms;
  1343. }
  1344. /**
  1345. * @return Collection<int, Activity>
  1346. */
  1347. public function getActivities(): Collection
  1348. {
  1349. return $this->activities;
  1350. }
  1351. public function addActivity(Activity $activity): self
  1352. {
  1353. if (!$this->activities->contains($activity)) {
  1354. $this->activities[] = $activity;
  1355. $activity->setOrganization($this);
  1356. }
  1357. return $this;
  1358. }
  1359. public function removeActivity(Activity $activity): self
  1360. {
  1361. if ($this->activities->removeElement($activity)) {
  1362. // set the owning side to null (unless already changed)
  1363. if ($activity->getOrganization() === $this) {
  1364. $activity->setOrganization(null);
  1365. }
  1366. }
  1367. return $this;
  1368. }
  1369. /**
  1370. * @return Collection<int, Jury>
  1371. */
  1372. public function getJuries(): Collection
  1373. {
  1374. return $this->juries;
  1375. }
  1376. public function addJury(Jury $jury): self
  1377. {
  1378. if (!$this->juries->contains($jury)) {
  1379. $this->juries[] = $jury;
  1380. $jury->setOrganization($this);
  1381. }
  1382. return $this;
  1383. }
  1384. public function removeJury(Jury $jury): self
  1385. {
  1386. if ($this->juries->removeElement($jury)) {
  1387. // set the owning side to null (unless already changed)
  1388. if ($jury->getOrganization() === $this) {
  1389. $jury->setOrganization(null);
  1390. }
  1391. }
  1392. return $this;
  1393. }
  1394. /**
  1395. * @return Collection<int, Commission>
  1396. */
  1397. public function getCommissions(): Collection
  1398. {
  1399. return $this->commissions;
  1400. }
  1401. public function addCommission(Commission $commission): self
  1402. {
  1403. if (!$this->commissions->contains($commission)) {
  1404. $this->commissions[] = $commission;
  1405. $commission->setOrganization($this);
  1406. }
  1407. return $this;
  1408. }
  1409. public function removeCommission(Commission $commission): self
  1410. {
  1411. if ($this->commissions->removeElement($commission)) {
  1412. // set the owning side to null (unless already changed)
  1413. if ($commission->getOrganization() === $this) {
  1414. $commission->setOrganization(null);
  1415. }
  1416. }
  1417. return $this;
  1418. }
  1419. public function getPlaces(): Collection
  1420. {
  1421. return $this->places;
  1422. }
  1423. public function addPlace(Place $place): self
  1424. {
  1425. if (!$this->places->contains($place)) {
  1426. $this->places[] = $place;
  1427. $place->setOrganization($this);
  1428. }
  1429. return $this;
  1430. }
  1431. public function removePlace(Place $place): self
  1432. {
  1433. if ($this->places->removeElement($place)) {
  1434. // set the owning side to null (unless already changed)
  1435. if ($place->getOrganization() === $this) {
  1436. $place->setOrganization(null);
  1437. }
  1438. }
  1439. return $this;
  1440. }
  1441. /**
  1442. * @return Collection<int, Attendance>
  1443. */
  1444. public function getAttendances(): Collection
  1445. {
  1446. return $this->attendances;
  1447. }
  1448. public function addAttendance(Attendance $attendance): self
  1449. {
  1450. if (!$this->attendances->contains($attendance)) {
  1451. $this->attendances[] = $attendance;
  1452. $attendance->setOrganization($this);
  1453. }
  1454. return $this;
  1455. }
  1456. public function removeAttendance(Attendance $attendance): self
  1457. {
  1458. if ($this->attendances->removeElement($attendance)) {
  1459. // set the owning side to null (unless already changed)
  1460. if ($attendance->getOrganization() === $this) {
  1461. $attendance->setOrganization(null);
  1462. }
  1463. }
  1464. return $this;
  1465. }
  1466. /**
  1467. * @return Collection<int, Equipment>
  1468. */
  1469. public function getEquipments(): Collection
  1470. {
  1471. return $this->equipments;
  1472. }
  1473. public function addEquipment(Equipment $equipment): self
  1474. {
  1475. if (!$this->equipments->contains($equipment)) {
  1476. $this->equipments[] = $equipment;
  1477. $equipment->setOrganization($this);
  1478. }
  1479. return $this;
  1480. }
  1481. public function removeEquipment(Equipment $equipment): self
  1482. {
  1483. if ($this->equipments->removeElement($equipment)) {
  1484. // set the owning side to null (unless already changed)
  1485. if ($equipment->getOrganization() === $this) {
  1486. $equipment->setOrganization(null);
  1487. }
  1488. }
  1489. return $this;
  1490. }
  1491. /**
  1492. * @return Collection<int, Intangible>
  1493. */
  1494. public function getIntangibles(): Collection
  1495. {
  1496. return $this->intangibles;
  1497. }
  1498. public function addIntangible(Intangible $intangible): self
  1499. {
  1500. if (!$this->intangibles->contains($intangible)) {
  1501. $this->intangibles[] = $intangible;
  1502. $intangible->setOrganization($this);
  1503. }
  1504. return $this;
  1505. }
  1506. public function removeIntangible(Intangible $intangible): self
  1507. {
  1508. if ($this->intangibles->removeElement($intangible)) {
  1509. // set the owning side to null (unless already changed)
  1510. if ($intangible->getOrganization() === $this) {
  1511. $intangible->setOrganization(null);
  1512. }
  1513. }
  1514. return $this;
  1515. }
  1516. /**
  1517. * @return Collection<int, Donor>
  1518. */
  1519. public function getDonors(): Collection
  1520. {
  1521. return $this->donors;
  1522. }
  1523. public function addDonor(Donor $donor): self
  1524. {
  1525. if (!$this->donors->contains($donor)) {
  1526. $this->donors[] = $donor;
  1527. $donor->setOrganization($this);
  1528. }
  1529. return $this;
  1530. }
  1531. public function removeDonor(Donor $donor): self
  1532. {
  1533. if ($this->donors->removeElement($donor)) {
  1534. // set the owning side to null (unless already changed)
  1535. if ($donor->getOrganization() === $this) {
  1536. $donor->setOrganization(null);
  1537. }
  1538. }
  1539. return $this;
  1540. }
  1541. // public function getOnlineRegistrationSettings(): \App\Entity\Organization\OnlineRegistrationSettings
  1542. // {
  1543. // return $this->onlineRegistrationSettings;
  1544. // }
  1545. //
  1546. // public function setOnlineRegistrationSettings(\App\Entity\Organization\OnlineRegistrationSettings $onlineRegistrationSettings): void
  1547. // {
  1548. // $this->onlineRegistrationSettings = $onlineRegistrationSettings;
  1549. // }
  1550. /**
  1551. * @return Collection<int, Tagg>
  1552. */
  1553. public function getTags(): Collection
  1554. {
  1555. return $this->tags;
  1556. }
  1557. public function addTag(Tagg $tag): self
  1558. {
  1559. if (!$this->tags->contains($tag)) {
  1560. $this->tags[] = $tag;
  1561. }
  1562. return $this;
  1563. }
  1564. public function removeTag(Tagg $tag): self
  1565. {
  1566. $this->tags->removeElement($tag);
  1567. return $this;
  1568. }
  1569. public function getRewards(): Collection
  1570. {
  1571. return $this->rewards;
  1572. }
  1573. public function addReward(Reward $rewards): self
  1574. {
  1575. if (!$this->rewards->contains($rewards)) {
  1576. $this->rewards[] = $rewards;
  1577. $rewards->setOrganization($this);
  1578. }
  1579. return $this;
  1580. }
  1581. public function removeReward(Reward $rewards): self
  1582. {
  1583. if ($this->rewards->removeElement($rewards)) {
  1584. // set the owning side to null (unless already changed)
  1585. if ($rewards->getOrganization() === $this) {
  1586. $rewards->setOrganization(null);
  1587. }
  1588. }
  1589. return $this;
  1590. }
  1591. public function getNetwork(): Collection
  1592. {
  1593. return $this->network;
  1594. }
  1595. public function addNetwork(NetworkOrganization $network): self
  1596. {
  1597. if (!$this->network->contains($network)) {
  1598. $this->network[] = $network;
  1599. $network->setOrganization($this);
  1600. }
  1601. return $this;
  1602. }
  1603. public function removeNetwork(NetworkOrganization $network): self
  1604. {
  1605. if ($this->network->removeElement($network)) {
  1606. $network->setOrganization(null);
  1607. }
  1608. return $this;
  1609. }
  1610. public function getNetworkChild(): Collection
  1611. {
  1612. return $this->networkChild;
  1613. }
  1614. public function addNetworkChild(NetworkOrganization $networkChild): self
  1615. {
  1616. if (!$this->networkChild->contains($networkChild)) {
  1617. $this->networkChild[] = $networkChild;
  1618. $networkChild->setParent($this);
  1619. }
  1620. return $this;
  1621. }
  1622. public function removeNetworkChild(NetworkOrganization $networkChild): self
  1623. {
  1624. if ($this->networkChild->removeElement($networkChild)) {
  1625. $networkChild->setParent(null);
  1626. }
  1627. return $this;
  1628. }
  1629. public function getBillingExportSetting(): ?BillingExportSetting
  1630. {
  1631. return $this->billingExportSetting;
  1632. }
  1633. public function setBillingExportSetting(?BillingExportSetting $billingExportSetting): self
  1634. {
  1635. $this->billingExportSetting = $billingExportSetting;
  1636. return $this;
  1637. }
  1638. public function getMessages(): Collection
  1639. {
  1640. return $this->messages;
  1641. }
  1642. public function addMessage(mixed $message): self
  1643. {
  1644. if (!$this->messages->contains($message)) {
  1645. $this->messages[] = $message;
  1646. $message->setOrganization($this);
  1647. }
  1648. return $this;
  1649. }
  1650. public function removeMessage(mixed $message): self
  1651. {
  1652. if ($this->messages->removeElement($message)) {
  1653. $message->setOrganization(null);
  1654. }
  1655. return $this;
  1656. }
  1657. public function getOnlineRegistrationSettings(): ?OnlineRegistrationSettings
  1658. {
  1659. return $this->onlineRegistrationSettings;
  1660. }
  1661. public function setOnlineRegistrationSettings(?OnlineRegistrationSettings $onlineRegistrationSettings): self
  1662. {
  1663. $this->onlineRegistrationSettings = $onlineRegistrationSettings;
  1664. return $this;
  1665. }
  1666. public function getCotisationByYears(): Collection
  1667. {
  1668. return $this->cotisationByYears;
  1669. }
  1670. public function addCotisationByYear(CotisationByYear $cotisationByYear): self
  1671. {
  1672. if (!$this->cotisationByYears->contains($cotisationByYear)) {
  1673. $this->cotisationByYears[] = $cotisationByYear;
  1674. $cotisationByYear->setOrganization($this);
  1675. }
  1676. return $this;
  1677. }
  1678. public function removeCotisationByYear(CotisationByYear $cotisationByYear): self
  1679. {
  1680. if ($this->cotisationByYears->removeElement($cotisationByYear)) {
  1681. $cotisationByYear->setOrganization(null);
  1682. }
  1683. return $this;
  1684. }
  1685. public function getAttendanceBookingReasons(): Collection
  1686. {
  1687. return $this->attendanceBookingReasons;
  1688. }
  1689. public function addAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
  1690. {
  1691. if (!$this->attendanceBookingReasons->contains($attendanceBookingReason)) {
  1692. $this->attendanceBookingReasons[] = $attendanceBookingReason;
  1693. $attendanceBookingReason->setOrganization($this);
  1694. }
  1695. return $this;
  1696. }
  1697. public function removeAttendanceBookingReason(AttendanceBookingReason $attendanceBookingReason): self
  1698. {
  1699. if ($this->attendanceBookingReasons->removeElement($attendanceBookingReason)) {
  1700. $attendanceBookingReason->setOrganization(null);
  1701. }
  1702. return $this;
  1703. }
  1704. public function getEducationCurriculumPacks(): Collection
  1705. {
  1706. return $this->educationCurriculumPacks;
  1707. }
  1708. public function addEducationCurriculumPack(Cycle $educationCurriculumPack): self
  1709. {
  1710. if (!$this->educationCurriculumPacks->contains($educationCurriculumPack)) {
  1711. $this->educationCurriculumPacks[] = $educationCurriculumPack;
  1712. $educationCurriculumPack->setOrganization($this);
  1713. }
  1714. return $this;
  1715. }
  1716. public function removeEducationCurriculumPack(Cycle $educationCurriculumPack): self
  1717. {
  1718. if ($this->educationCurriculumPacks->removeElement($educationCurriculumPack)) {
  1719. $educationCurriculumPack->setOrganization(null);
  1720. }
  1721. return $this;
  1722. }
  1723. public function getFamilyQuotientModels(): Collection
  1724. {
  1725. return $this->familyQuotientModels;
  1726. }
  1727. public function addFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
  1728. {
  1729. if (!$this->familyQuotientModels->contains($familyQuotientModel)) {
  1730. $this->familyQuotientModels[] = $familyQuotientModel;
  1731. $familyQuotientModel->setOrganization($this);
  1732. }
  1733. return $this;
  1734. }
  1735. public function removeFamilyQuotientModel(FamilyQuotientModel $familyQuotientModel): self
  1736. {
  1737. if ($this->familyQuotientModels->removeElement($familyQuotientModel)) {
  1738. // $familyQuotientModel->setOrganization(null); // TODO: actuellement, pas nullable: conserver?
  1739. }
  1740. return $this;
  1741. }
  1742. public function getBillSchedules(): Collection
  1743. {
  1744. return $this->billSchedules;
  1745. }
  1746. public function addBillSchedule(BillSchedule $billSchedule): self
  1747. {
  1748. if (!$this->billSchedules->contains($billSchedule)) {
  1749. $this->billSchedules[] = $billSchedule;
  1750. $billSchedule->setOrganization($this);
  1751. }
  1752. return $this;
  1753. }
  1754. public function removeBillSchedule(BillSchedule $billSchedule): self
  1755. {
  1756. if ($this->billSchedules->removeElement($billSchedule)) {
  1757. // $billSchedule->setOrganization(null); // TODO: actuellement, pas nullable: conserver?
  1758. }
  1759. return $this;
  1760. }
  1761. public function getReports(): Collection
  1762. {
  1763. return $this->reports;
  1764. }
  1765. public function addReport(AbstractReport $report): self
  1766. {
  1767. if (!$this->reports->contains($report)) {
  1768. $this->reports[] = $report;
  1769. $report->setOrganization($this);
  1770. }
  1771. return $this;
  1772. }
  1773. public function removeReport(AbstractReport $report): self
  1774. {
  1775. if ($this->reports->removeElement($report)) {
  1776. $report->setOrganization(null);
  1777. }
  1778. return $this;
  1779. }
  1780. public function getOrders(): Collection
  1781. {
  1782. return $this->orders;
  1783. }
  1784. public function addOrder(Orders $order): self
  1785. {
  1786. if (!$this->orders->contains($order)) {
  1787. $this->orders[] = $order;
  1788. $order->setOrganization($this);
  1789. }
  1790. return $this;
  1791. }
  1792. public function removeOrder(Orders $order): self
  1793. {
  1794. if ($this->orders->removeElement($order)) {
  1795. $order->setOrganization(null);
  1796. }
  1797. return $this;
  1798. }
  1799. public function getTips(): Collection
  1800. {
  1801. return $this->tips;
  1802. }
  1803. public function addTip(Tips $tip): self
  1804. {
  1805. if (!$this->tips->contains($tip)) {
  1806. $this->tips[] = $tip;
  1807. $tip->addOrganization($this);
  1808. }
  1809. return $this;
  1810. }
  1811. public function removeTip(Tips $tip): self
  1812. {
  1813. if ($this->tips->removeElement($tip)) {
  1814. $tip->removeOrganization($this);
  1815. }
  1816. return $this;
  1817. }
  1818. }