src/Entity/FiltreStructure.php line 21

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Repository\FiltreStructureRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\DBAL\Types\Types;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Gedmo\Mapping\Annotation as Gedmo;
  10. /**
  11. * FiltreStructure.
  12. *
  13. * @ORM\Table(name="FiltreStructure")
  14. *
  15. * @ORM\Entity(repositoryClass=FiltreStructureRepository::class)
  16. */
  17. class FiltreStructure
  18. {
  19. /**
  20. * @var ArrayCollection
  21. */
  22. public $communesZoneInfluence;
  23. public $territoireRevitalisationRurale;
  24. /**
  25. * @var int
  26. *
  27. * @ORM\Column(name="id", type="integer")
  28. *
  29. * @ORM\Id
  30. *
  31. * @ORM\GeneratedValue(strategy="AUTO")
  32. */
  33. private $id;
  34. /**
  35. * @var string
  36. *
  37. * @ORM\Column(name="nom", type="string", length=255)
  38. */
  39. private $nom;
  40. /**
  41. * @var string
  42. *
  43. * @ORM\Column(name="description", type="string", length=255, nullable=true)
  44. */
  45. private $description;
  46. /**
  47. * Quel est le mode de gestion du centre social ?
  48. *
  49. * @ORM\ManyToOne(targetEntity="ModeGestion", inversedBy="filtreStructures")
  50. *
  51. * @ORM\JoinColumn(name="mode_gestion_id", referencedColumnName="id")
  52. */
  53. private $modeGestion;
  54. /**
  55. * @var int
  56. *
  57. * @ORM\Column(name="adhesionIndividuel", type="integer", nullable=true)
  58. */
  59. private $adhesionIndividuel;
  60. /**
  61. * @var int
  62. *
  63. * @ORM\Column(name="adhesionFamiliale", type="integer", nullable=true)
  64. */
  65. private $adhesionFamiliale;
  66. /**
  67. * @var string
  68. *
  69. * @ORM\Column(name="communes", type="text", nullable=true)
  70. */
  71. private $communes;
  72. /**
  73. * Cette association gère-t-elle: Un agrément / Plusieurs agrément.
  74. *
  75. * @ORM\ManyToOne(targetEntity="Agrement", inversedBy="filtreStructures")
  76. *
  77. * @ORM\JoinColumn(name="agrement_id", referencedColumnName="id")
  78. */
  79. private $agrement;
  80. /**
  81. * si mode de gestion « collectivité locale », précisez :
  82. *
  83. * @ORM\ManyToOne(targetEntity="ModeGestionCollectiviteLocale", inversedBy="filtreStructures")
  84. *
  85. * @ORM\JoinColumn(name="mode_gestion_collectivite_locale_id", referencedColumnName="id")
  86. */
  87. private $modeGestionCollectiviteLocale;
  88. /**
  89. * si mode de gestion « co gestion », précisez :
  90. *
  91. * @ORM\ManyToOne(targetEntity="ModeGestionCoGestion", inversedBy="filtreStructures")
  92. *
  93. * @ORM\JoinColumn(name="mode_gestion_co_gestion_id", referencedColumnName="id")
  94. */
  95. private $modeGestionCoGestion;
  96. /**
  97. * Êtes vous adhérent à la Fédération des centres sociaux ?
  98. *
  99. * @var int
  100. *
  101. * @ORM\Column(name="is_adherent_federation", type="integer",nullable=true)
  102. */
  103. private $isAdherentFederation;
  104. /**
  105. * Êtes vous adhérent à une autre fédération ?
  106. *
  107. * @ORM\ManyToOne(targetEntity="AdherentAutreFederation", inversedBy="filtreStructures")
  108. *
  109. * @ORM\JoinColumn(name="adherent_autre_federation_id", referencedColumnName="id")
  110. */
  111. private $adherentAutreFederation;
  112. /**
  113. * But(s) de ces modalités d'adhésion ?
  114. *
  115. * @ORM\ManyToOne(targetEntity="SystemeAdhesionGoal", inversedBy="filtreStructures")
  116. *
  117. * @ORM\JoinColumn(name="systemeAdhesionGoal_id", referencedColumnName="id")
  118. */
  119. private $systemeAdhesionGoal;
  120. /**
  121. * Votre territoire d'intervention est.
  122. *
  123. * @ORM\ManyToOne(targetEntity="TerritoireIntervention", inversedBy="filtreStructures")
  124. *
  125. * @ORM\JoinColumn(name="territoire_intervention_id", referencedColumnName="id")
  126. */
  127. private $territoireIntervention;
  128. /**
  129. * Si votre territoire d'intervention est un espace à dominante urbaine, il est situé sur:
  130. *
  131. * @ORM\ManyToOne(targetEntity="TerritoireInterventionUrbaine", inversedBy="filtreStructures")
  132. *
  133. * @ORM\JoinColumn(name="territoire_intervention_urbaine_id", referencedColumnName="id")
  134. */
  135. private $territoireInterventionUrbaine;
  136. /**
  137. * Si votre territoire d'intervention est un espace à dominante rurale, il est situé sur:
  138. *
  139. * @ORM\ManyToOne(targetEntity="TerritoireInterventionRurale", inversedBy="filtreStructures")
  140. *
  141. * @ORM\JoinColumn(name="territoire_intervention_rurale_id", referencedColumnName="id")
  142. */
  143. private $territoireInterventionRurale;
  144. /**
  145. * votre territoire est-il un territoire de revitalisation rurale.
  146. *
  147. * @var bool
  148. *
  149. * @ORM\Column(name="is_territoire_revitalisation_rurale", type="integer",nullable=true)
  150. */
  151. private $isTerritoireRevitalisationRurale;
  152. /**
  153. * La politique de la ville et votre centre social (centre social situé sur un territoire urbain).
  154. *
  155. * @ORM\ManyToMany(targetEntity="PolitiqueVille", cascade={"persist"})
  156. *
  157. * @ORM\JoinTable(name="filtre_structures_politique_villes")
  158. */
  159. private $politiqueVille;
  160. /**
  161. * Vous êtes un centre social "gens du voyage".
  162. *
  163. * @var int
  164. *
  165. * @ORM\Column(name="is_gens_voyage", type="integer",nullable=true)
  166. */
  167. private $isGensVoyage;
  168. /**
  169. * @var bool
  170. *
  171. * @ORM\Column(name="hasEVSAgrement", type="boolean", nullable= true, options={"default" = 0})
  172. */
  173. private $hasEVSAgrement;
  174. /**
  175. * @Gedmo\Blameable(on="create")
  176. *
  177. * @ORM\ManyToOne(targetEntity="User", cascade={"persist"})
  178. *
  179. * @ORM\JoinColumn(referencedColumnName="id", onDelete="SET NULL")
  180. */
  181. protected $createdBy;
  182. /**
  183. * @ORM\Column(type="boolean", nullable=true)
  184. */
  185. private $isMultiSites;
  186. /**
  187. * @ORM\Column(type="boolean", nullable=true)
  188. */
  189. private $isItinerante;
  190. /**
  191. * @ORM\ManyToMany(targetEntity=TypeStructure::class, inversedBy="filtreStructures", cascade={"persist"})
  192. *
  193. * @ORM\JoinTable(name="filtre_structures_types_structure")
  194. */
  195. private $typesStructure;
  196. /**
  197. * @ORM\ManyToOne(targetEntity=Departement::class, inversedBy="filtreStructures")
  198. */
  199. private $departement;
  200. /**
  201. * Constructor.
  202. */
  203. public function __construct()
  204. {
  205. $this->communesZoneInfluence = new ArrayCollection();
  206. $this->typesStructure = new ArrayCollection();
  207. $this->politiqueVille = new ArrayCollection();
  208. }
  209. #[\Override]
  210. public function __toString(): string
  211. {
  212. return $this->nom;
  213. }
  214. /**
  215. * Get id.
  216. *
  217. * @return int
  218. */
  219. public function getId()
  220. {
  221. return $this->id;
  222. }
  223. /**
  224. * Set nom.
  225. *
  226. * @param string $nom
  227. */
  228. public function setNom($nom): static
  229. {
  230. $this->nom = $nom;
  231. return $this;
  232. }
  233. /**
  234. * Get nom.
  235. *
  236. * @return string
  237. */
  238. public function getNom()
  239. {
  240. return $this->nom;
  241. }
  242. /**
  243. * Set description.
  244. *
  245. * @param string $description
  246. */
  247. public function setDescription($description): static
  248. {
  249. $this->description = $description;
  250. return $this;
  251. }
  252. /**
  253. * Get description.
  254. *
  255. * @return string
  256. */
  257. public function getDescription()
  258. {
  259. return $this->description;
  260. }
  261. /**
  262. * Set modeGestion.
  263. */
  264. public function setModeGestion(?ModeGestion $modeGestion = null): static
  265. {
  266. $this->modeGestion = $modeGestion;
  267. return $this;
  268. }
  269. /**
  270. * Get modeGestion.
  271. *
  272. * @return ModeGestion
  273. */
  274. public function getModeGestion()
  275. {
  276. return $this->modeGestion;
  277. }
  278. /**
  279. * Set isAdherentFederation.
  280. *
  281. * @param bool $isAdherentFederation
  282. */
  283. public function setIsAdherentFederation($isAdherentFederation): static
  284. {
  285. $this->isAdherentFederation = $isAdherentFederation;
  286. return $this;
  287. }
  288. /**
  289. * Get isAdherentFederation.
  290. *
  291. * @return bool
  292. */
  293. public function getIsAdherentFederation()
  294. {
  295. return $this->isAdherentFederation;
  296. }
  297. /**
  298. * Set isTerritoireRevitalisationRurale.
  299. *
  300. * @param bool $isTerritoireRevitalisationRurale
  301. */
  302. public function setIsTerritoireRevitalisationRurale($isTerritoireRevitalisationRurale): static
  303. {
  304. $this->isTerritoireRevitalisationRurale = $isTerritoireRevitalisationRurale;
  305. return $this;
  306. }
  307. /**
  308. * Get isTerritoireRevitalisationRurale.
  309. *
  310. * @return bool
  311. */
  312. public function getIsTerritoireRevitalisationRurale()
  313. {
  314. return $this->isTerritoireRevitalisationRurale;
  315. }
  316. /**
  317. * Set territoireRevitalisationRurale.
  318. *
  319. * @param string $territoireRevitalisationRurale
  320. */
  321. public function setTerritoireRevitalisationRurale($territoireRevitalisationRurale): static
  322. {
  323. $this->territoireRevitalisationRurale = $territoireRevitalisationRurale;
  324. return $this;
  325. }
  326. /**
  327. * Get territoireRevitalisationRurale.
  328. *
  329. * @return string
  330. */
  331. public function getTerritoireRevitalisationRurale()
  332. {
  333. return $this->territoireRevitalisationRurale;
  334. }
  335. /**
  336. * Set adherentAutreFederation.
  337. */
  338. public function setAdherentAutreFederation(?AdherentAutreFederation $adherentAutreFederation = null): static
  339. {
  340. $this->adherentAutreFederation = $adherentAutreFederation;
  341. return $this;
  342. }
  343. /**
  344. * Get adherentAutreFederation.
  345. *
  346. * @return AdherentAutreFederation
  347. */
  348. public function getAdherentAutreFederation()
  349. {
  350. return $this->adherentAutreFederation;
  351. }
  352. /**
  353. * Set territoireIntervention.
  354. */
  355. public function setTerritoireIntervention(?TerritoireIntervention $territoireIntervention = null): static
  356. {
  357. $this->territoireIntervention = $territoireIntervention;
  358. return $this;
  359. }
  360. /**
  361. * Get territoireIntervention.
  362. *
  363. * @return TerritoireIntervention
  364. */
  365. public function getTerritoireIntervention()
  366. {
  367. return $this->territoireIntervention;
  368. }
  369. /**
  370. * Set territoireInterventionUrbaine.
  371. */
  372. public function setTerritoireInterventionUrbaine(?TerritoireInterventionUrbaine $territoireInterventionUrbaine = null): static
  373. {
  374. $this->territoireInterventionUrbaine = $territoireInterventionUrbaine;
  375. return $this;
  376. }
  377. /**
  378. * Get territoireInterventionUrbaine.
  379. *
  380. * @return TerritoireInterventionUrbaine
  381. */
  382. public function getTerritoireInterventionUrbaine()
  383. {
  384. return $this->territoireInterventionUrbaine;
  385. }
  386. /**
  387. * Set territoireInterventionRurale.
  388. */
  389. public function setTerritoireInterventionRurale(?TerritoireInterventionRurale $territoireInterventionRurale = null): static
  390. {
  391. $this->territoireInterventionRurale = $territoireInterventionRurale;
  392. return $this;
  393. }
  394. /**
  395. * Get territoireInterventionRurale.
  396. *
  397. * @return TerritoireInterventionRurale
  398. */
  399. public function getTerritoireInterventionRurale()
  400. {
  401. return $this->territoireInterventionRurale;
  402. }
  403. /**
  404. * Set adhesionIndividuel.
  405. *
  406. * @param int $adhesionIndividuel
  407. */
  408. public function setAdhesionIndividuel($adhesionIndividuel): static
  409. {
  410. $this->adhesionIndividuel = $adhesionIndividuel;
  411. return $this;
  412. }
  413. /**
  414. * Get adhesionIndividuel.
  415. *
  416. * @return int
  417. */
  418. public function getAdhesionIndividuel()
  419. {
  420. return $this->adhesionIndividuel;
  421. }
  422. /**
  423. * Set adhesionFamiliale.
  424. *
  425. * @param int $adhesionFamiliale
  426. */
  427. public function setAdhesionFamiliale($adhesionFamiliale): static
  428. {
  429. $this->adhesionFamiliale = $adhesionFamiliale;
  430. return $this;
  431. }
  432. /**
  433. * Get adhesionFamiliale.
  434. *
  435. * @return int
  436. */
  437. public function getAdhesionFamiliale()
  438. {
  439. return $this->adhesionFamiliale;
  440. }
  441. /**
  442. * Set modeGestionCollectiviteLocale.
  443. */
  444. public function setModeGestionCollectiviteLocale(?ModeGestionCollectiviteLocale $modeGestionCollectiviteLocale = null): static
  445. {
  446. $this->modeGestionCollectiviteLocale = $modeGestionCollectiviteLocale;
  447. return $this;
  448. }
  449. /**
  450. * Get modeGestionCollectiviteLocale.
  451. *
  452. * @return ModeGestionCollectiviteLocale
  453. */
  454. public function getModeGestionCollectiviteLocale()
  455. {
  456. return $this->modeGestionCollectiviteLocale;
  457. }
  458. /**
  459. * Set modeGestionCoGestion.
  460. */
  461. public function setModeGestionCoGestion(?ModeGestionCoGestion $modeGestionCoGestion = null): static
  462. {
  463. $this->modeGestionCoGestion = $modeGestionCoGestion;
  464. return $this;
  465. }
  466. /**
  467. * Get modeGestionCoGestion.
  468. *
  469. * @return ModeGestionCoGestion
  470. */
  471. public function getModeGestionCoGestion()
  472. {
  473. return $this->modeGestionCoGestion;
  474. }
  475. /**
  476. * Add politiqueVille.
  477. */
  478. public function addPolitiqueVille(PolitiqueVille $politiqueVille): static
  479. {
  480. $this->politiqueVille[] = $politiqueVille;
  481. return $this;
  482. }
  483. /**
  484. * Remove politiqueVille.
  485. */
  486. public function removePolitiqueVille(PolitiqueVille $politiqueVille): void
  487. {
  488. $this->politiqueVille->removeElement($politiqueVille);
  489. }
  490. /**
  491. * Get politiqueVille.
  492. *
  493. * @return Collection
  494. */
  495. public function getPolitiqueVille()
  496. {
  497. return $this->politiqueVille;
  498. }
  499. /**
  500. * Get format
  501. * pour le filtre.
  502. */
  503. public function getFormat(): string
  504. {
  505. return '';
  506. }
  507. /**
  508. * Get onlyComplete
  509. * pour le filtre.
  510. */
  511. public function getOnlyComplete(): bool
  512. {
  513. return false;
  514. }
  515. /**
  516. * Get info
  517. * pour le filtre.
  518. */
  519. public function getInfo(): string
  520. {
  521. return '';
  522. }
  523. /**
  524. * Get groupe
  525. * pour le filtre.
  526. */
  527. public function getGroupe(): string
  528. {
  529. return '';
  530. }
  531. /**
  532. * Get query.
  533. *
  534. * @return string
  535. */
  536. public function getAddQuery(string $alias): array
  537. {
  538. $query_join = [];
  539. $query = '';
  540. $join = '';
  541. if ($this->modeGestion) {
  542. $query .= ' AND '.$alias.'.modeGestion = '.$this->modeGestion->getId();
  543. }
  544. if ($this->modeGestionCollectiviteLocale) {
  545. $query .= ' AND '.$alias.'.modeGestionCollectiviteLocale = '.$this->modeGestionCollectiviteLocale->getId();
  546. }
  547. if ($this->modeGestionCoGestion) {
  548. $query .= ' AND '.$alias.'.modeGestionCoGestion = '.$this->modeGestionCoGestion->getId();
  549. }
  550. if ($this->adherentAutreFederation) {
  551. $join .= ' JOIN '.$alias.'.adherentAutreFederation2 aaf2';
  552. $query .= ' AND aaf2.id = '.$this->adherentAutreFederation->getId();
  553. }
  554. if ($this->territoireIntervention) {
  555. $query .= ' AND '.$alias.'. territoireIntervention = '.$this->territoireIntervention->getId();
  556. }
  557. if ($this->territoireInterventionUrbaine) {
  558. $query .= ' AND '.$alias.'.territoireInterventionUrbaine = '.$this->territoireInterventionUrbaine->getId();
  559. }
  560. if ($this->territoireInterventionRurale) {
  561. $query .= ' AND '.$alias.'. territoireInterventionRurale = '.$this->territoireInterventionRurale->getId();
  562. }
  563. if ($this->agrement) {
  564. $join .= ' JOIN '.$alias.'.agrement ag';
  565. $query .= ' AND ag.id = '.$this->agrement->getId();
  566. }
  567. if ($this->isAdherentFederation) {
  568. $query .= ' AND '.$alias.'.isAdherentFederation = '.$this->isAdherentFederation;
  569. }
  570. if ($this->isGensVoyage) {
  571. $query .= ' AND '.$alias.'.isGensVoyage = '.$this->isGensVoyage;
  572. }
  573. if ($this->isMultiSites) {
  574. $query .= ' AND '.$alias.'.isMultiSites = '.$this->isMultiSites;
  575. }
  576. if ($this->isItinerante) {
  577. $query .= ' AND '.$alias.'.isItinerante = '.$this->isItinerante;
  578. }
  579. // if ($this->isTerritoireRevitalisationRurale) {
  580. // $query .= " AND " . $alias . ".isTerritoireRevitalisationRurale = " . $this->isTerritoireRevitalisationRurale;
  581. // }
  582. if ((is_countable($this->politiqueVille) ? count($this->politiqueVille) : 0) > 0) {
  583. $join .= ' JOIN '.$alias.'.politiqueVille pv';
  584. foreach ($this->politiqueVille as $politique) {
  585. $query .= ' AND pv.id = '.$politique->getId();
  586. }
  587. }
  588. if ($this->communes) {
  589. $join .= ' JOIN '.$alias.'.communeImplementation c';
  590. $query .= ' AND c.insee IN ('.$this->communes.')';
  591. }
  592. if ($this->departement) {
  593. $query .= ' AND '.$alias.'. departement = '.$this->getDepartement()->getId();
  594. }
  595. $query_join['query'] = $query;
  596. $query_join['join'] = $join;
  597. return $query_join;
  598. }
  599. /**
  600. * Get query.
  601. *
  602. * @return string
  603. */
  604. public function getAddQuerySQL(string $alias): array
  605. {
  606. $query_join = [];
  607. $query = '';
  608. $join = '';
  609. if ($this->modeGestion) {
  610. $query .= ' AND '.$alias.'.mode_gestion_id = '.$this->modeGestion->getId();
  611. }
  612. if ($this->modeGestionCollectiviteLocale) {
  613. $query .= ' AND '.$alias.'.mode_gestion_collectivite_locale_id = '.$this->modeGestionCollectiviteLocale->getId();
  614. }
  615. // if ($this->modeGestionCoGestion) {
  616. // $query .= " AND " . $alias . ".mode_gestion_co_gestion_id = " . $this->modeGestionCoGestion->getId();
  617. // }
  618. if ($this->adherentAutreFederation) {
  619. $query .= ' AND '.$alias.'.precision_adherent_autre_federation = '.$this->adherentAutreFederation->getId();
  620. }
  621. if ($this->territoireIntervention) {
  622. $query .= ' AND '.$alias.'.territoire_intervention_id = '.$this->territoireIntervention->getId();
  623. }
  624. if ($this->territoireInterventionUrbaine) {
  625. $query .= ' AND '.$alias.'.territoire_intervention_urbaine_id = '.$this->territoireInterventionUrbaine->getId();
  626. }
  627. if ($this->territoireInterventionRurale) {
  628. $query .= ' AND '.$alias.'.territoire_intervention_rurale_id = '.$this->territoireInterventionRurale->getId();
  629. }
  630. if ($this->agrement) {
  631. $join .= ' JOIN Agrement ag ON agrement_id=ad.id';
  632. $query .= ' AND ag.id = '.$this->agrement->getId();
  633. }
  634. if ($this->isAdherentFederation) {
  635. $query .= ' AND '.$alias.'.is_adherent_federation = '.$this->isAdherentFederation;
  636. }
  637. if ($this->isGensVoyage) {
  638. $query .= ' AND '.$alias.'.is_gens_voyage = '.$this->isGensVoyage;
  639. }
  640. if ($this->isTerritoireRevitalisationRurale) {
  641. $query .= ' AND '.$alias.'.is_territoire_revitalisation_rurale = '.$this->isTerritoireRevitalisationRurale;
  642. }
  643. if ($this->politiqueVille && (is_countable($this->politiqueVille) ? count($this->politiqueVille) : 0)) {
  644. $join .= ' JOIN structures_politique_villes spv ON s.id = spv.structure_id ';
  645. $politiqueVilleIds = [];
  646. foreach ($this->politiqueVille as $politiqueVille) {
  647. $politiqueVilleIds[] = $politiqueVille->getId();
  648. }
  649. $query .= ' AND spv.politiqueville_id IN ('.implode(',', $politiqueVilleIds).')';
  650. }
  651. if ($this->communes) {
  652. $join .= ' JOIN Commune c ON commune_implementation_id = c.id ';
  653. $query .= ' AND c.insee IN ('.$this->communes.')';
  654. }
  655. $query_join['query'] = $query;
  656. $query_join['join'] = $join;
  657. return $query_join;
  658. }
  659. /**
  660. * Set agrement.
  661. */
  662. public function setAgrement(?Agrement $agrement = null): static
  663. {
  664. $this->agrement = $agrement;
  665. return $this;
  666. }
  667. /**
  668. * Get agrement.
  669. *
  670. * @return Agrement
  671. */
  672. public function getAgrement()
  673. {
  674. return $this->agrement;
  675. }
  676. /**
  677. * Set communes.
  678. *
  679. * @param string $communes
  680. */
  681. public function setCommunes($communes): static
  682. {
  683. $this->communes = $communes;
  684. return $this;
  685. }
  686. /**
  687. * Get communes.
  688. *
  689. * @return string
  690. */
  691. public function getCommunes()
  692. {
  693. return $this->communes;
  694. }
  695. /**
  696. * Set isGensVoyage.
  697. *
  698. * @param int $isGensVoyage
  699. */
  700. public function setIsGensVoyage($isGensVoyage): static
  701. {
  702. $this->isGensVoyage = $isGensVoyage;
  703. return $this;
  704. }
  705. /**
  706. * Get isGensVoyage.
  707. *
  708. * @return int
  709. */
  710. public function getIsGensVoyage()
  711. {
  712. return $this->isGensVoyage;
  713. }
  714. /**
  715. * Set hasEVSAgrement.
  716. *
  717. * @param bool $hasEVSAgrement
  718. */
  719. public function setHasEVSAgrement($hasEVSAgrement): static
  720. {
  721. $this->hasEVSAgrement = $hasEVSAgrement;
  722. return $this;
  723. }
  724. /**
  725. * Get hasEVSAgrement.
  726. *
  727. * @return bool
  728. */
  729. public function getHasEVSAgrement()
  730. {
  731. return $this->hasEVSAgrement;
  732. }
  733. /**
  734. * Set systemeAdhesionGoal.
  735. */
  736. public function setSystemeAdhesionGoal(?SystemeAdhesionGoal $systemeAdhesionGoal = null): static
  737. {
  738. $this->systemeAdhesionGoal = $systemeAdhesionGoal;
  739. return $this;
  740. }
  741. /**
  742. * Get systemeAdhesionGoal.
  743. *
  744. * @return SystemeAdhesionGoal
  745. */
  746. public function getSystemeAdhesionGoal()
  747. {
  748. return $this->systemeAdhesionGoal;
  749. }
  750. /**
  751. * Set createdBy.
  752. */
  753. public function setCreatedBy(?User $createdBy = null): static
  754. {
  755. $this->createdBy = $createdBy;
  756. return $this;
  757. }
  758. /**
  759. * Get createdBy.
  760. *
  761. * @return \User
  762. */
  763. public function getCreatedBy()
  764. {
  765. return $this->createdBy;
  766. }
  767. public function getIsMultiSites(): ?bool
  768. {
  769. return $this->isMultiSites;
  770. }
  771. public function setIsMultiSites(?bool $isMultiSites): self
  772. {
  773. $this->isMultiSites = $isMultiSites;
  774. return $this;
  775. }
  776. public function getIsItinerante(): ?bool
  777. {
  778. return $this->isItinerante;
  779. }
  780. public function setIsItinerante(?bool $isItinerante): self
  781. {
  782. $this->isItinerante = $isItinerante;
  783. return $this;
  784. }
  785. /**
  786. * @return Collection<int, TypeStructure>
  787. */
  788. public function getTypesStructure(): Collection
  789. {
  790. return $this->typesStructure;
  791. }
  792. public function addTypesStructure(TypeStructure $typesStructure): self
  793. {
  794. if (!$this->typesStructure->contains($typesStructure)) {
  795. $this->typesStructure[] = $typesStructure;
  796. }
  797. return $this;
  798. }
  799. public function removeTypesStructure(TypeStructure $typesStructure): self
  800. {
  801. $this->typesStructure->removeElement($typesStructure);
  802. return $this;
  803. }
  804. public function getDepartement(): ?Departement
  805. {
  806. return $this->departement;
  807. }
  808. public function setDepartement(?Departement $departement): self
  809. {
  810. $this->departement = $departement;
  811. return $this;
  812. }
  813. public function isHasEVSAgrement(): ?bool
  814. {
  815. return $this->hasEVSAgrement;
  816. }
  817. public function isIsMultiSites(): ?bool
  818. {
  819. return $this->isMultiSites;
  820. }
  821. public function isIsItinerante(): ?bool
  822. {
  823. return $this->isItinerante;
  824. }
  825. }