Organization.php 64 KB

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