src/Entity/Structure.php line 26

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Repository\StructureRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Gedmo\Mapping\Annotation as Gedmo;
  9. use Symfony\Component\HttpFoundation\File\File;
  10. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  11. /**
  12. * Structure.
  13. *
  14. * @ORM\Table(name="Structure", indexes={@ORM\Index(name="structure_tokens", columns={"token"})})
  15. *
  16. * @ORM\Entity(repositoryClass=StructureRepository::class)
  17. *
  18. * @Vich\Uploadable
  19. *
  20. * @ORM\HasLifecycleCallbacks
  21. */
  22. class Structure
  23. {
  24. /**
  25. * @var int
  26. */
  27. public $typeStructureId;
  28. /**
  29. * @var int
  30. *
  31. * @ORM\Column(name="id", type="integer")
  32. *
  33. * @ORM\Id
  34. *
  35. * @ORM\GeneratedValue(strategy="AUTO")
  36. */
  37. private $id;
  38. /**
  39. * @var string
  40. *
  41. * @ORM\Column(name="nom", type="string", length=255)
  42. */
  43. private $nom;
  44. /**
  45. * @var string
  46. *
  47. * @ORM\Column(name="adresse", type="string", length=255, nullable=true)
  48. */
  49. private $adresse;
  50. /**
  51. * @var string
  52. *
  53. * @ORM\Column(name="code_postal", type="string", length=255, nullable=true)
  54. */
  55. private $code_postal;
  56. /**
  57. * @var string
  58. *
  59. * @ORM\Column(name="telephone", type="string", length=15, nullable=true)
  60. */
  61. private $telephone;
  62. /**
  63. * @var string
  64. *
  65. * @ORM\Column(name="fax", type="string", length=15, nullable=true)
  66. */
  67. private $fax;
  68. /**
  69. * @var string
  70. *
  71. * @ORM\Column(name="site_internet", type="string", length=255, nullable=true)
  72. */
  73. private $siteInternet;
  74. /**
  75. * @var string
  76. *
  77. * @ORM\Column(name="email", type="string", length=255, nullable=true)
  78. */
  79. private $email;
  80. /**
  81. * @var string
  82. *
  83. * @ORM\Column(name="code_ape", type="string", length=255, nullable=true)
  84. */
  85. private $codeApe;
  86. /**
  87. * @var string
  88. *
  89. * @ORM\Column(name="siret", type="string", length=255, nullable=true)
  90. */
  91. private $siret;
  92. /**
  93. * @var string
  94. *
  95. * @ORM\Column(name="directorName", type="string", length=255, nullable=true)
  96. */
  97. private $directorName;
  98. /**
  99. * @var string
  100. *
  101. * @ORM\Column(name="presidentName", type="string", length=255, nullable=true)
  102. */
  103. private $presidentName;
  104. /**
  105. * @var string
  106. *
  107. * @ORM\Column(name="login", type="string", length=255,nullable=true)
  108. */
  109. private $login;
  110. /**
  111. * @var string
  112. *
  113. * @ORM\Column(name="password", type="string", length=255,nullable=true)
  114. */
  115. private $password;
  116. /**
  117. * @var bool
  118. *
  119. * @ORM\Column(name="is_actif", type="boolean",nullable=true)
  120. */
  121. private $isActif;
  122. /**
  123. * @var bool
  124. *
  125. * @ORM\Column(name="is_delete", type="boolean", options={"default" = 0})
  126. */
  127. private $isDelete = false;
  128. /**
  129. * @ORM\ManyToOne(targetEntity="TypeStructure", inversedBy="structures")
  130. *
  131. * @ORM\JoinColumn(name="type_structure_id", referencedColumnName="id")
  132. */
  133. private $typeStructure;
  134. /**
  135. * @ORM\ManyToOne(targetEntity="Commune", inversedBy="structuresImplementes")
  136. *
  137. * @ORM\JoinColumn(name="commune_implementation_id", referencedColumnName="id")
  138. */
  139. private $communeImplementation;
  140. /**
  141. * @ORM\ManyToMany(targetEntity="Commune", inversedBy="structuresZoneInfluence")
  142. *
  143. * @ORM\JoinTable(name="structure_commune_zone_influence")
  144. */
  145. private $communesZoneInfluence;
  146. /**
  147. * @ORM\ManyToOne(targetEntity="Departement", inversedBy="structures")
  148. *
  149. * @ORM\JoinColumn(name="departement_id", referencedColumnName="id")
  150. */
  151. private $departement;
  152. /**
  153. * @ORM\ManyToOne(targetEntity="Region", inversedBy="structures")
  154. *
  155. * @ORM\JoinColumn(name="region_id", referencedColumnName="id")
  156. */
  157. private $region;
  158. /**
  159. * @ORM\ManyToOne(targetEntity="GrandeRegion", inversedBy="structures")
  160. *
  161. * @ORM\JoinColumn(name="grandeRegion_id", referencedColumnName="id")
  162. */
  163. private $grandeRegion;
  164. /**
  165. * @ORM\OneToMany(targetEntity="Question", mappedBy="structure")
  166. */
  167. private $questions;
  168. /**
  169. * @ORM\OneToMany(targetEntity="Action", mappedBy="structure")
  170. */
  171. private $actions;
  172. /**
  173. * @var int
  174. *
  175. * @ORM\Column(name="dureeAgrement", type="integer", nullable=true)
  176. */
  177. private $dureeAgrement;
  178. /**
  179. * Quel est le mode de gestion du centre social ?
  180. *
  181. * @ORM\ManyToOne(targetEntity="ModeGestion", inversedBy="structures")
  182. *
  183. * @ORM\JoinColumn(name="mode_gestion_id", referencedColumnName="id")
  184. */
  185. private $modeGestion;
  186. /**
  187. * Quelle convention collective nationale appliquez-vous ?
  188. *
  189. * @ORM\ManyToOne(targetEntity="ConventionCollective", inversedBy="structures")
  190. *
  191. * @ORM\JoinColumn(name="convention_collective_id", referencedColumnName="id", nullable=true)
  192. */
  193. private ?ConventionCollective $conventionCollective = null;
  194. /**
  195. * @var string
  196. *
  197. * @ORM\Column(name="autre_mode_gestion", type="string", length=255, nullable=true)
  198. */
  199. private $autreModeGestion;
  200. /**
  201. * @var bool
  202. *
  203. * @ORM\Column(name="haveSystemeAdhesion", type="boolean", options={"default" = 1})
  204. */
  205. private $haveSystemeAdhesion = true;
  206. /**
  207. * @var int
  208. *
  209. * @ORM\Column(name="adhesionIndividuel", type="integer", nullable=true, options={"default" = 0})
  210. */
  211. private $adhesionIndividuel = 0;
  212. /**
  213. * @var int
  214. *
  215. * @ORM\Column(name="adhesionFamiliale", type="integer", nullable=true, options={"default" = 0})
  216. */
  217. private $adhesionFamiliale = 0;
  218. /**
  219. * @var int
  220. *
  221. * @ORM\Column(name="nbPersonneAdhesion", type="integer", nullable=true, options={"default" = 0})
  222. */
  223. private $nbPersonneAdhesion = 0;
  224. /**
  225. * @var int
  226. *
  227. * @ORM\Column(name="nbParticipantActivite", type="integer", nullable=true)
  228. */
  229. private $nbParticipantActivite;
  230. /**
  231. * @var int
  232. *
  233. * @ORM\Column(name="nbParticipantAction", type="integer", nullable=true)
  234. */
  235. private $nbParticipantAction;
  236. /**
  237. * @var int
  238. *
  239. * @ORM\Column(name="nbParticipantPonctuel", type="integer", nullable=true)
  240. */
  241. private $nbParticipantPonctuel;
  242. /**
  243. * Cette association gère-t-elle: Un agrément / Plusieurs agrément.
  244. *
  245. * @ORM\ManyToOne(targetEntity="Agrement", inversedBy="structures")
  246. *
  247. * @ORM\JoinColumn(name="agrement_id", referencedColumnName="id")
  248. */
  249. private $agrement;
  250. /**
  251. * Liste des durées des agréments.
  252. *
  253. * @ORM\ManyToOne(targetEntity="AgrementDuree", inversedBy="structures")
  254. *
  255. * @ORM\JoinColumn(name="agrement_duree_id", referencedColumnName="id")
  256. */
  257. private $agrementDuree;
  258. /**
  259. * @var text
  260. *
  261. * @ORM\Column(name="activityDomain", type="text", nullable=true)
  262. */
  263. private $activityDomain;
  264. /**
  265. * si mode de gestion « collectivité locale », précisez :
  266. *
  267. * @ORM\ManyToOne(targetEntity="ModeGestionCollectiviteLocale", inversedBy="structures")
  268. *
  269. * @ORM\JoinColumn(name="mode_gestion_collectivite_locale_id", referencedColumnName="id")
  270. */
  271. private $modeGestionCollectiviteLocale;
  272. /**
  273. * si mode de gestion « co gestion », précisez :
  274. *
  275. * @ORM\ManyToOne(targetEntity="ModeGestionCoGestion", inversedBy="structures")
  276. *
  277. * @ORM\JoinColumn(name="mode_gestion_co_gestion_id", referencedColumnName="id")
  278. */
  279. private $modeGestionCoGestion;
  280. /**
  281. * Êtes vous adhérent à la Fédération des centres sociaux ?
  282. *
  283. * @var bool
  284. *
  285. * @ORM\Column(name="is_adherent_federation", type="boolean",nullable=true, options={"default" : 0})
  286. */
  287. private $isAdherentFederation = false;
  288. /**
  289. * Êtes vous adhérent à une autre fédération ?
  290. *
  291. * @ORM\ManyToOne(targetEntity="AdherentAutreFederation", inversedBy="structures")
  292. *
  293. * @ORM\JoinColumn(name="adherent_autre_federation_id", referencedColumnName="id")
  294. */
  295. private $adherentAutreFederation;
  296. /**
  297. * Êtes vous adhérent à une autre fédération ?
  298. *
  299. * @ORM\ManyToMany(targetEntity="AdherentAutreFederation", inversedBy="structures2", cascade={"persist"})
  300. *
  301. * @ORM\JoinTable(name="structures_adherentAutreFederation")
  302. */
  303. private $adherentAutreFederation2;
  304. /**
  305. * But(s) de ces modalités d'adhésion ?
  306. *
  307. * @ORM\ManyToMany(targetEntity="SystemeAdhesionGoal", inversedBy="structures", cascade={"persist"})
  308. *
  309. * @ORM\JoinTable(name="structures_systemeAdhesionGoal")
  310. */
  311. private $systemeAdhesionGoal;
  312. /**
  313. * @var string
  314. *
  315. * @ORM\Column(name="precision_adherent_autre_federation", type="string", length=255, nullable=true)
  316. */
  317. private $precisionAdherentAutreFederation;
  318. /**
  319. * Votre territoire d'intervention est.
  320. *
  321. * @ORM\ManyToOne(targetEntity="TerritoireIntervention", inversedBy="structures")
  322. *
  323. * @ORM\JoinColumn(name="territoire_intervention_id", referencedColumnName="id", onDelete="SET NULL" )
  324. */
  325. private $territoireIntervention;
  326. /**
  327. * @var bool
  328. *
  329. * @ORM\Column(name="is_gens_voyage", type="boolean",nullable=true)
  330. */
  331. private $isGensVoyage;
  332. /**
  333. * @var bool
  334. *
  335. * @ORM\Column(name="is_multiSite", type="boolean",nullable=true)
  336. */
  337. private $isMultiSites;
  338. /**
  339. * @var bool
  340. *
  341. * @ORM\Column(name="is_itinerante", type="boolean",nullable=true)
  342. */
  343. private $isItinerante;
  344. /**
  345. * Si votre territoire d'intervention est un espace à dominante urbaine, il est situé sur:
  346. *
  347. * @ORM\ManyToOne(targetEntity="TerritoireInterventionUrbaine", inversedBy="structures")
  348. *
  349. * @ORM\JoinColumn(name="territoire_intervention_urbaine_id", referencedColumnName="id")
  350. */
  351. private $territoireInterventionUrbaine;
  352. /**
  353. * Si votre territoire d'intervention est un espace à dominante rurale, il est situé sur:
  354. *
  355. * @ORM\ManyToOne(targetEntity="TerritoireInterventionRurale", inversedBy="structures")
  356. *
  357. * @ORM\JoinColumn(name="territoire_intervention_rurale_id", referencedColumnName="id")
  358. */
  359. private $territoireInterventionRurale;
  360. /**
  361. * votre territoire est-il un territoire de revitalisation rurale.
  362. *
  363. * @var bool
  364. *
  365. * @ORM\Column(name="is_territoire_revitalisation_rurale", type="boolean",nullable=true)
  366. */
  367. private $isTerritoireRevitalisationRurale;
  368. /**
  369. * @var string
  370. *
  371. * @ORM\Column(name="territoire_revitalisation_rurale", type="string", length=255,nullable=true)
  372. */
  373. private $territoireRevitalisationRurale;
  374. /**
  375. * La politique de la ville et votre centre social (centre social situé sur un territoire urbain).
  376. *
  377. * @ORM\ManyToMany(targetEntity="PolitiqueVille", cascade={"persist"})
  378. *
  379. * @ORM\JoinTable(name="structures_politique_villes")
  380. */
  381. private $politiqueVille;
  382. /**
  383. * @var string
  384. *
  385. * @ORM\Column(name="qpvNumbers", type="string", length=255,nullable=true)
  386. */
  387. private $qpvNumbers;
  388. /**
  389. * @var string
  390. *
  391. * @ORM\Column(name="zrrCities", type="string", length=255,nullable=true)
  392. */
  393. private $zrrCities;
  394. /**
  395. * Date du 1er argrément.
  396. *
  397. * @var date
  398. *
  399. * @ORM\Column(name="date_1er_agrement", type="date",nullable=true)
  400. */
  401. private $date_1er_agrement;
  402. /**
  403. * Population zone de compétence.
  404. *
  405. * @var int
  406. *
  407. * @ORM\Column(name="populationZoneCompetence", type="integer", nullable=true)
  408. */
  409. private $population_zone_competence;
  410. /**
  411. * @var text
  412. *
  413. * @ORM\Column(name="historique", type="text", nullable=true)
  414. */
  415. private $historique;
  416. /**
  417. * @ORM\OneToOne(targetEntity="User", inversedBy="structure",cascade={"remove"})
  418. *
  419. * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")
  420. * */
  421. private $user;
  422. /**
  423. * Nb commune territoire urbain.
  424. *
  425. * @var int
  426. *
  427. * @ORM\Column(name="nbCommuneUrbain", type="integer", nullable=true)
  428. */
  429. private $nbCommuneUrbain;
  430. /**
  431. * Nb commune territoire rural.
  432. *
  433. * @var int
  434. *
  435. * @ORM\Column(name="nbCommuneRural", type="integer", nullable=true)
  436. */
  437. private $nbCommuneRural;
  438. /**
  439. * @ORM\OneToMany(targetEntity="FicheAction", mappedBy="structure")
  440. */
  441. private $fichesAction;
  442. /**
  443. * @var text
  444. *
  445. * @ORM\Column(name="observation", type="text", nullable=true)
  446. */
  447. private $observation;
  448. /**
  449. * @var string
  450. *
  451. * @ORM\Column(name="axe_projet_1", type="string", length=255, nullable=true)
  452. */
  453. private $axeProjet1;
  454. /**
  455. * @var string
  456. *
  457. * @ORM\Column(name="axe_projet_2", type="string", length=255, nullable=true)
  458. */
  459. private $axeProjet2;
  460. /**
  461. * @var string
  462. *
  463. * @ORM\Column(name="axe_projet_3", type="string", length=255, nullable=true)
  464. */
  465. private $axeProjet3;
  466. /**
  467. * @var string
  468. *
  469. * @ORM\Column(name="axe_projet_4", type="string", length=255, nullable=true)
  470. */
  471. private $axeProjet4;
  472. /**
  473. * @var string
  474. *
  475. * @ORM\Column(name="axe_projet_5", type="string", length=255, nullable=true)
  476. */
  477. private $axeProjet5;
  478. /**
  479. * @ORM\Column(type="string", length=36, nullable=true)
  480. */
  481. private $token;
  482. /**
  483. * @ORM\OneToOne(targetEntity="FicheSynthetique", mappedBy="structure")
  484. */
  485. private $ficheSynthetique;
  486. /**
  487. * @Vich\UploadableField(mapping="structure_logo", fileNameProperty="logo")
  488. */
  489. private ?File $logoFile = null;
  490. /**
  491. * @ORM\Column(type="string", length=255, nullable=true)
  492. *
  493. * @var string
  494. */
  495. private $logo;
  496. /**
  497. * @ORM\Column(name="createdAt", type="datetime", nullable=true)
  498. */
  499. private ?\DateTime $createdAt = null;
  500. /**
  501. * @ORM\Column(name="updatedAt", type="datetime", nullable=true)
  502. *
  503. * @Gedmo\Timestampable(on="update")
  504. */
  505. private \DateTime $updatedAt;
  506. /**
  507. * @var float
  508. *
  509. * @ORM\Column(name="latitude", type="decimal", precision=10, scale=8, nullable=true)
  510. */
  511. private $latitude;
  512. /**
  513. * @var float
  514. *
  515. * @ORM\Column(name="longitude", type="decimal", precision=10, scale=8, nullable=true)
  516. */
  517. private $longitude;
  518. /**
  519. * @var bool
  520. *
  521. * @ORM\Column(name="canShowCSO", type="boolean", options={"default" = 1})
  522. */
  523. private $canShowCSO = true;
  524. /**
  525. * @var bool
  526. *
  527. * @ORM\Column(name="canShowEVS", type="boolean", options={"default" = 1})
  528. */
  529. private $canShowEVS = true;
  530. /**
  531. * @var bool
  532. *
  533. * @ORM\Column(name="hasEVSAgrement", type="boolean", options={"default" = 0}, nullable=true)
  534. */
  535. private $hasEVSAgrement = false;
  536. /**
  537. * @var bool
  538. *
  539. * @ORM\Column(name="hasactionToHelpPersonRightsAccess", type="boolean", options={"default" = 0}, nullable=true)
  540. */
  541. private $hasactionToHelpPersonRightsAccess = false;
  542. /**
  543. * @ORM\Column(name="actionsToHelpPersonRightsAccess", type="array")
  544. *
  545. * @var array
  546. */
  547. private $actionsToHelpPersonRightsAccess = [];
  548. /**
  549. * @var text
  550. *
  551. * @ORM\Column(name="actionsToHelpPersonRightsAccessOther", type="text", nullable=true)
  552. */
  553. private $actionsToHelpPersonRightsAccessOther;
  554. /**
  555. * @ORM\ManyToMany(targetEntity="QPV", cascade={"persist"})
  556. */
  557. private $qpvs;
  558. /**
  559. * @var int
  560. *
  561. * @ORM\Column(name="nbAssociationAdhereProjetStructure", type="integer", nullable=true, options={"default" = 0})
  562. */
  563. private $nbAssociationAdhereProjetStructure = 0;
  564. /**
  565. * Constructor.
  566. */
  567. public function __construct()
  568. {
  569. $this->communesZoneInfluence = new ArrayCollection();
  570. $this->createdAt = new \DateTime('now');
  571. $this->updatedAt = new \DateTime('now');
  572. }
  573. #[\Override]
  574. public function __toString(): string
  575. {
  576. return $this->nom.' - '.$this->departement;
  577. }
  578. public function getGeolocCoordinate(): string
  579. {
  580. $geoloc = null;
  581. if ($this->latitude && $this->longitude) {
  582. $geoloc = $this->latitude.','.$this->longitude;
  583. } elseif ($this->getCommuneImplementation()) {
  584. $geoloc = $this->getCommuneImplementation()->getLongitude().','.$this->getCommuneImplementation()->getLatitude();
  585. }
  586. return $geoloc;
  587. }
  588. public function getInsee()
  589. {
  590. $insee = null;
  591. if ($this->getCommuneImplementation()) {
  592. $insee = $this->getCommuneImplementation()->getInsee();
  593. }
  594. return $insee;
  595. }
  596. /**
  597. * Get id.
  598. *
  599. * @return int
  600. */
  601. public function getId()
  602. {
  603. return $this->id;
  604. }
  605. /**
  606. * Set nom.
  607. *
  608. * @param string $nom
  609. */
  610. public function setNom($nom): static
  611. {
  612. $this->nom = $nom;
  613. return $this;
  614. }
  615. /**
  616. * Get nom.
  617. *
  618. * @return string
  619. */
  620. public function getNom()
  621. {
  622. return $this->nom;
  623. }
  624. /**
  625. * Set adresse.
  626. *
  627. * @param string $adresse
  628. */
  629. public function setAdresse($adresse): static
  630. {
  631. $this->adresse = $adresse;
  632. return $this;
  633. }
  634. /**
  635. * Get adresse.
  636. *
  637. * @return string
  638. */
  639. public function getAdresse()
  640. {
  641. return $this->adresse;
  642. }
  643. /**
  644. * Set telephone.
  645. *
  646. * @param string $telephone
  647. */
  648. public function setTelephone($telephone): static
  649. {
  650. $this->telephone = $telephone;
  651. return $this;
  652. }
  653. /**
  654. * Get telephone.
  655. *
  656. * @return string
  657. */
  658. public function getTelephone()
  659. {
  660. return $this->telephone;
  661. }
  662. /**
  663. * Set siteInternet.
  664. *
  665. * @param string $siteInternet
  666. */
  667. public function setSiteInternet($siteInternet): static
  668. {
  669. $this->siteInternet = $siteInternet;
  670. return $this;
  671. }
  672. /**
  673. * Get siteInternet.
  674. *
  675. * @return string
  676. */
  677. public function getSiteInternet()
  678. {
  679. return $this->siteInternet;
  680. }
  681. /**
  682. * Set email.
  683. *
  684. * @param string $email
  685. */
  686. public function setEmail($email): static
  687. {
  688. $this->email = $email;
  689. return $this;
  690. }
  691. /**
  692. * Get email.
  693. *
  694. * @return string
  695. */
  696. public function getEmail()
  697. {
  698. return $this->email;
  699. }
  700. /**
  701. * Set login.
  702. *
  703. * @param string $login
  704. */
  705. public function setLogin($login): static
  706. {
  707. $this->login = $login;
  708. return $this;
  709. }
  710. /**
  711. * Get login.
  712. *
  713. * @return string
  714. */
  715. public function getLogin()
  716. {
  717. return $this->login;
  718. }
  719. /**
  720. * Set password.
  721. *
  722. * @param string $password
  723. */
  724. public function setPassword($password): static
  725. {
  726. $this->password = $password;
  727. return $this;
  728. }
  729. /**
  730. * Get password.
  731. *
  732. * @return string
  733. */
  734. public function getPassword()
  735. {
  736. return $this->password;
  737. }
  738. /**
  739. * Set isActif.
  740. *
  741. * @param bool $isActif
  742. */
  743. public function setIsActif($isActif): static
  744. {
  745. $this->isActif = $isActif;
  746. return $this;
  747. }
  748. /**
  749. * Get isActif.
  750. *
  751. * @return bool
  752. */
  753. public function getIsActif()
  754. {
  755. return $this->isActif;
  756. }
  757. /**
  758. * Set typeStructure.
  759. */
  760. public function setTypeStructure(?TypeStructure $typeStructure = null): static
  761. {
  762. $this->typeStructure = $typeStructure;
  763. return $this;
  764. }
  765. /**
  766. * Get typeStructure.
  767. *
  768. * @return TypeStructure
  769. */
  770. public function getTypeStructure()
  771. {
  772. return $this->typeStructure;
  773. }
  774. /**
  775. * Set typeStructureId.
  776. *
  777. * @param int $typeStructureId
  778. */
  779. public function setTypeStructureId($typeStructureId): static
  780. {
  781. $this->typeStructureId = $typeStructureId;
  782. return $this;
  783. }
  784. /**
  785. * Set communeImplementation.
  786. */
  787. public function setCommuneImplementation(?Commune $communeImplementation = null): static
  788. {
  789. $this->communeImplementation = $communeImplementation;
  790. return $this;
  791. }
  792. /**
  793. * Get communeImplementation.
  794. *
  795. * @return Commune
  796. */
  797. public function getCommuneImplementation()
  798. {
  799. return $this->communeImplementation;
  800. }
  801. /**
  802. * Add communesZoneInfluence.
  803. */
  804. public function addCommunesZoneInfluence(Commune $communesZoneInfluence): static
  805. {
  806. $this->communesZoneInfluence[] = $communesZoneInfluence;
  807. return $this;
  808. }
  809. /**
  810. * Remove communesZoneInfluence.
  811. */
  812. public function removeCommunesZoneInfluence(Commune $communesZoneInfluence): void
  813. {
  814. $this->communesZoneInfluence->removeElement($communesZoneInfluence);
  815. }
  816. /**
  817. * Get communesZoneInfluence.
  818. *
  819. * @return Collection
  820. */
  821. public function getCommunesZoneInfluence()
  822. {
  823. return $this->communesZoneInfluence;
  824. }
  825. /**
  826. * Set code_postal.
  827. *
  828. * @param string $codePostal
  829. */
  830. public function setCodePostal($codePostal): static
  831. {
  832. $this->code_postal = $codePostal;
  833. return $this;
  834. }
  835. /**
  836. * Get code_postal.
  837. *
  838. * @return string
  839. */
  840. public function getCodePostal()
  841. {
  842. return $this->code_postal;
  843. }
  844. /**
  845. * Add questions.
  846. */
  847. public function addQuestion(Question $questions): static
  848. {
  849. $this->questions[] = $questions;
  850. return $this;
  851. }
  852. /**
  853. * Remove questions.
  854. */
  855. public function removeQuestion(Question $questions): void
  856. {
  857. $this->questions->removeElement($questions);
  858. }
  859. /**
  860. * Get questions.
  861. *
  862. * @return Collection
  863. */
  864. public function getQuestions()
  865. {
  866. return $this->questions;
  867. }
  868. /**
  869. * Set modeGestion.
  870. */
  871. public function setModeGestion(?ModeGestion $modeGestion = null): static
  872. {
  873. $this->modeGestion = $modeGestion;
  874. return $this;
  875. }
  876. /**
  877. * Get modeGestion.
  878. *
  879. * @return ModeGestion
  880. */
  881. public function getModeGestion()
  882. {
  883. return $this->modeGestion;
  884. }
  885. /**
  886. * Set conventionCollective.
  887. */
  888. public function setConventionCollective(?ConventionCollective $conventionCollective = null): static
  889. {
  890. $this->conventionCollective = $conventionCollective;
  891. return $this;
  892. }
  893. /**
  894. * Get conventionCollective.
  895. */
  896. public function getConventionCollective(): ?ConventionCollective
  897. {
  898. return $this->conventionCollective;
  899. }
  900. /**
  901. * Set isAdherentFederation.
  902. *
  903. * @param bool $isAdherentFederation
  904. */
  905. public function setIsAdherentFederation($isAdherentFederation): static
  906. {
  907. $this->isAdherentFederation = $isAdherentFederation;
  908. return $this;
  909. }
  910. /**
  911. * Get isAdherentFederationExport.
  912. */
  913. public function getIsAdherentFederationExport(): string
  914. {
  915. if ($this->isAdherentFederation) {
  916. return 'Oui';
  917. } else {
  918. return 'Non';
  919. }
  920. }
  921. /**
  922. * Get isAdherentFederation.
  923. *
  924. * @return bool
  925. */
  926. public function getIsAdherentFederation()
  927. {
  928. return $this->isAdherentFederation;
  929. }
  930. /**
  931. * Set isTerritoireRevitalisationRurale.
  932. *
  933. * @param bool $isTerritoireRevitalisationRurale
  934. */
  935. public function setIsTerritoireRevitalisationRurale($isTerritoireRevitalisationRurale): static
  936. {
  937. $this->isTerritoireRevitalisationRurale = $isTerritoireRevitalisationRurale;
  938. return $this;
  939. }
  940. /**
  941. * Get isTerritoireRevitalisationRuraleExport.
  942. */
  943. public function getIsTerritoireRevitalisationRuraleExport(): string
  944. {
  945. if ($this->isTerritoireRevitalisationRurale) {
  946. return 'Oui';
  947. } else {
  948. return 'Non';
  949. }
  950. }
  951. /**
  952. * Get isTerritoireRevitalisationRurale.
  953. *
  954. * @return bool
  955. */
  956. public function getIsTerritoireRevitalisationRurale()
  957. {
  958. return $this->isTerritoireRevitalisationRurale;
  959. }
  960. /**
  961. * Set territoireRevitalisationRurale.
  962. *
  963. * @param string $territoireRevitalisationRurale
  964. */
  965. public function setTerritoireRevitalisationRurale($territoireRevitalisationRurale): static
  966. {
  967. $this->territoireRevitalisationRurale = $territoireRevitalisationRurale;
  968. return $this;
  969. }
  970. /**
  971. * Get territoireRevitalisationRurale.
  972. *
  973. * @return string
  974. */
  975. public function getTerritoireRevitalisationRurale()
  976. {
  977. return $this->territoireRevitalisationRurale;
  978. }
  979. /**
  980. * Set adherentAutreFederation.
  981. */
  982. public function setAdherentAutreFederation(?AdherentAutreFederation $adherentAutreFederation = null): static
  983. {
  984. $this->adherentAutreFederation = $adherentAutreFederation;
  985. return $this;
  986. }
  987. /**
  988. * Get adherentAutreFederation.
  989. *
  990. * @return AdherentAutreFederation
  991. */
  992. public function getAdherentAutreFederation()
  993. {
  994. return $this->adherentAutreFederation;
  995. }
  996. /**
  997. * Set territoireIntervention.
  998. */
  999. public function setTerritoireIntervention(?TerritoireIntervention $territoireIntervention = null): static
  1000. {
  1001. $this->territoireIntervention = $territoireIntervention;
  1002. return $this;
  1003. }
  1004. /**
  1005. * Get territoireIntervention.
  1006. *
  1007. * @return TerritoireIntervention
  1008. */
  1009. public function getTerritoireIntervention()
  1010. {
  1011. return $this->territoireIntervention;
  1012. }
  1013. /**
  1014. * Set territoireInterventionUrbaine.
  1015. */
  1016. public function setTerritoireInterventionUrbaine(?TerritoireInterventionUrbaine $territoireInterventionUrbaine = null): static
  1017. {
  1018. $this->territoireInterventionUrbaine = $territoireInterventionUrbaine;
  1019. return $this;
  1020. }
  1021. /**
  1022. * Get territoireInterventionUrbaine.
  1023. *
  1024. * @return TerritoireInterventionUrbaine
  1025. */
  1026. public function getTerritoireInterventionUrbaine()
  1027. {
  1028. return $this->territoireInterventionUrbaine;
  1029. }
  1030. /**
  1031. * Set territoireInterventionRurale.
  1032. */
  1033. public function setTerritoireInterventionRurale(?TerritoireInterventionRurale $territoireInterventionRurale = null): static
  1034. {
  1035. $this->territoireInterventionRurale = $territoireInterventionRurale;
  1036. return $this;
  1037. }
  1038. /**
  1039. * Get territoireInterventionRurale.
  1040. *
  1041. * @return TerritoireInterventionRurale
  1042. */
  1043. public function getTerritoireInterventionRurale()
  1044. {
  1045. return $this->territoireInterventionRurale;
  1046. }
  1047. /**
  1048. * Set user.
  1049. */
  1050. public function setUser(?User $user = null): static
  1051. {
  1052. $this->user = $user;
  1053. return $this;
  1054. }
  1055. /**
  1056. * Get user.
  1057. *
  1058. * @return \User
  1059. */
  1060. public function getUser()
  1061. {
  1062. return $this->user;
  1063. }
  1064. /*
  1065. * Renvoie la liste des types de strcuture que l'utilisateur a le droit de voir
  1066. *
  1067. * */
  1068. public function getListType(): array
  1069. {
  1070. $result = [];
  1071. switch ($this->getTypeStructure()->getNom()) {
  1072. case 'CSO':
  1073. break;
  1074. case 'CAF':
  1075. case 'FDD':
  1076. $result = ['EVS', 'CSO'];
  1077. break;
  1078. case 'RR':
  1079. $result = ['EVS', 'CSO', 'CAF', 'FDD'];
  1080. break;
  1081. case 'RGR':
  1082. $result = ['EVS', 'CSO', 'CAF', 'FDD', 'RR'];
  1083. break;
  1084. case 'RN':
  1085. $result = ['EVS', 'CSO', 'CAF', 'FDD', 'RR', 'RGR'];
  1086. break;
  1087. }
  1088. return $result;
  1089. }
  1090. /**
  1091. * @return \Departement
  1092. */
  1093. public function getDepartement()
  1094. {
  1095. return $this->departement;
  1096. }
  1097. /**
  1098. * Set departement.
  1099. */
  1100. public function setDepartement(?Departement $departement = null): static
  1101. {
  1102. $this->departement = $departement;
  1103. return $this;
  1104. }
  1105. /**
  1106. * Set region.
  1107. */
  1108. public function setRegion(?Region $region = null): static
  1109. {
  1110. $this->region = $region;
  1111. return $this;
  1112. }
  1113. /**
  1114. * Get region.
  1115. *
  1116. * @return Region
  1117. */
  1118. public function getRegion()
  1119. {
  1120. return $this->region;
  1121. }
  1122. /**
  1123. * Set autreModeGestion.
  1124. *
  1125. * @param string $autreModeGestion
  1126. */
  1127. public function setAutreModeGestion($autreModeGestion): static
  1128. {
  1129. $this->autreModeGestion = $autreModeGestion;
  1130. return $this;
  1131. }
  1132. /**
  1133. * Get autreModeGestion.
  1134. *
  1135. * @return string
  1136. */
  1137. public function getAutreModeGestion()
  1138. {
  1139. return $this->autreModeGestion;
  1140. }
  1141. /**
  1142. * Set precisionAdherentAutreFederation.
  1143. *
  1144. * @param string $precisionAdherentAutreFederation
  1145. */
  1146. public function setPrecisionAdherentAutreFederation($precisionAdherentAutreFederation): static
  1147. {
  1148. $this->precisionAdherentAutreFederation = $precisionAdherentAutreFederation;
  1149. return $this;
  1150. }
  1151. /**
  1152. * Get precisionAdherentAutreFederation.
  1153. *
  1154. * @return string
  1155. */
  1156. public function getPrecisionAdherentAutreFederation()
  1157. {
  1158. return $this->precisionAdherentAutreFederation;
  1159. }
  1160. /**
  1161. * Set adhesionIndividuel.
  1162. *
  1163. * @param int $adhesionIndividuel
  1164. */
  1165. public function setAdhesionIndividuel($adhesionIndividuel): static
  1166. {
  1167. $this->adhesionIndividuel = $adhesionIndividuel;
  1168. return $this;
  1169. }
  1170. /**
  1171. * Get adhesionIndividuel.
  1172. *
  1173. * @return int
  1174. */
  1175. public function getAdhesionIndividuel()
  1176. {
  1177. return $this->adhesionIndividuel;
  1178. }
  1179. /**
  1180. * Set adhesionFamiliale.
  1181. *
  1182. * @param int $adhesionFamiliale
  1183. */
  1184. public function setAdhesionFamiliale($adhesionFamiliale): static
  1185. {
  1186. $this->adhesionFamiliale = $adhesionFamiliale;
  1187. return $this;
  1188. }
  1189. /**
  1190. * Get adhesionFamiliale.
  1191. *
  1192. * @return int
  1193. */
  1194. public function getAdhesionFamiliale()
  1195. {
  1196. return $this->adhesionFamiliale;
  1197. }
  1198. /**
  1199. * Set modeGestionCollectiviteLocale.
  1200. */
  1201. public function setModeGestionCollectiviteLocale(?ModeGestionCollectiviteLocale $modeGestionCollectiviteLocale = null): static
  1202. {
  1203. $this->modeGestionCollectiviteLocale = $modeGestionCollectiviteLocale;
  1204. return $this;
  1205. }
  1206. /**
  1207. * Get modeGestionCollectiviteLocale.
  1208. *
  1209. * @return ModeGestionCollectiviteLocale
  1210. */
  1211. public function getModeGestionCollectiviteLocale()
  1212. {
  1213. return $this->modeGestionCollectiviteLocale;
  1214. }
  1215. /**
  1216. * Set codeApe.
  1217. *
  1218. * @param string $codeApe
  1219. */
  1220. public function setCodeApe($codeApe): static
  1221. {
  1222. $this->codeApe = $codeApe;
  1223. return $this;
  1224. }
  1225. /**
  1226. * Get codeApe.
  1227. *
  1228. * @return string
  1229. */
  1230. public function getCodeApe()
  1231. {
  1232. return $this->codeApe;
  1233. }
  1234. /**
  1235. * Set siret.
  1236. *
  1237. * @param string $siret
  1238. */
  1239. public function setSiret($siret): static
  1240. {
  1241. $this->siret = $siret;
  1242. return $this;
  1243. }
  1244. /**
  1245. * Get siret.
  1246. *
  1247. * @return string
  1248. */
  1249. public function getSiret()
  1250. {
  1251. return $this->siret;
  1252. }
  1253. /**
  1254. * Set fax.
  1255. *
  1256. * @param string $fax
  1257. */
  1258. public function setFax($fax): static
  1259. {
  1260. $this->fax = $fax;
  1261. return $this;
  1262. }
  1263. /**
  1264. * Get fax.
  1265. *
  1266. * @return string
  1267. */
  1268. public function getFax()
  1269. {
  1270. return $this->fax;
  1271. }
  1272. /**
  1273. * Set modeGestionCoGestion.
  1274. */
  1275. public function setModeGestionCoGestion(?ModeGestionCoGestion $modeGestionCoGestion = null): static
  1276. {
  1277. $this->modeGestionCoGestion = $modeGestionCoGestion;
  1278. return $this;
  1279. }
  1280. /**
  1281. * Get modeGestionCoGestion.
  1282. *
  1283. * @return ModeGestionCoGestion
  1284. */
  1285. public function getModeGestionCoGestion()
  1286. {
  1287. return $this->modeGestionCoGestion;
  1288. }
  1289. /**
  1290. * Set date_1er_agrement.
  1291. *
  1292. * @param \DateTime $date1erAgrement
  1293. */
  1294. public function setDate1erAgrement($date1erAgrement): static
  1295. {
  1296. $this->date_1er_agrement = $date1erAgrement;
  1297. return $this;
  1298. }
  1299. /**
  1300. * Get date_1er_agrement.
  1301. *
  1302. * @return \DateTime
  1303. */
  1304. public function getDate1erAgrement()
  1305. {
  1306. return $this->date_1er_agrement;
  1307. }
  1308. /**
  1309. * Set historique.
  1310. *
  1311. * @param string $historique
  1312. */
  1313. public function setHistorique($historique): static
  1314. {
  1315. $this->historique = $historique;
  1316. return $this;
  1317. }
  1318. /**
  1319. * Get historique.
  1320. *
  1321. * @return string
  1322. */
  1323. public function getHistorique()
  1324. {
  1325. return $this->historique;
  1326. }
  1327. public function getHistoriqueExport()
  1328. {
  1329. return stripTagsFull($this->historique);
  1330. }
  1331. /**
  1332. * Add politiqueVille.
  1333. */
  1334. public function addPolitiqueVille(PolitiqueVille $politiqueVille): static
  1335. {
  1336. $this->politiqueVille[] = $politiqueVille;
  1337. return $this;
  1338. }
  1339. /**
  1340. * Remove politiqueVille.
  1341. */
  1342. public function removePolitiqueVille(PolitiqueVille $politiqueVille): void
  1343. {
  1344. $this->politiqueVille->removeElement($politiqueVille);
  1345. }
  1346. /**
  1347. * Get politiqueVille.
  1348. *
  1349. * @return Collection
  1350. */
  1351. public function getPolitiqueVille()
  1352. {
  1353. return $this->politiqueVille;
  1354. }
  1355. /**
  1356. * Get politiqueVilleExport
  1357. * pour l'export xls des fiches structures.
  1358. */
  1359. public function getPolitiqueVilleExport(): string
  1360. {
  1361. $result = '';
  1362. $i = 0;
  1363. $max = is_countable($this->politiqueVille) ? count($this->politiqueVille) : 0;
  1364. foreach ($this->politiqueVille as $politique) {
  1365. ++$i;
  1366. $separator = '';
  1367. if ($i < $max) {
  1368. $separator = ' / ';
  1369. }
  1370. $result .= $politique->getNom().$separator;
  1371. }
  1372. return $result;
  1373. }
  1374. /**
  1375. * Add actions.
  1376. */
  1377. public function addAction(Action $actions): static
  1378. {
  1379. $this->actions[] = $actions;
  1380. return $this;
  1381. }
  1382. /**
  1383. * Remove actions.
  1384. */
  1385. public function removeAction(Action $actions): void
  1386. {
  1387. $this->actions->removeElement($actions);
  1388. }
  1389. /**
  1390. * Get actions.
  1391. *
  1392. * @return Collection
  1393. */
  1394. public function getActions()
  1395. {
  1396. return $this->actions;
  1397. }
  1398. /**
  1399. * Set populationZoneCompetence.
  1400. *
  1401. * @param int $population_zone_competence
  1402. */
  1403. public function setPopulationZoneCompetence($population_zone_competence): static
  1404. {
  1405. $this->population_zone_competence = $population_zone_competence;
  1406. return $this;
  1407. }
  1408. /**
  1409. * Get populationZoneCompetence.
  1410. *
  1411. * @return int
  1412. */
  1413. public function getPopulationZoneCompetence()
  1414. {
  1415. return $this->population_zone_competence;
  1416. }
  1417. /**
  1418. * Set agrement.
  1419. */
  1420. public function setAgrement(?Agrement $agrement = null): static
  1421. {
  1422. $this->agrement = $agrement;
  1423. return $this;
  1424. }
  1425. /**
  1426. * Get agrement.
  1427. *
  1428. * @return Agrement
  1429. */
  1430. public function getAgrement()
  1431. {
  1432. return $this->agrement;
  1433. }
  1434. /**
  1435. * Set nbPersonneAdhesion.
  1436. *
  1437. * @param int $nbPersonneAdhesion
  1438. */
  1439. public function setNbPersonneAdhesion($nbPersonneAdhesion): static
  1440. {
  1441. $this->nbPersonneAdhesion = $nbPersonneAdhesion;
  1442. return $this;
  1443. }
  1444. /**
  1445. * Get nbPersonneAdhesion.
  1446. *
  1447. * @return int
  1448. */
  1449. public function getNbPersonneAdhesion()
  1450. {
  1451. return $this->nbPersonneAdhesion;
  1452. }
  1453. /**
  1454. * Set isGensVoyage.
  1455. *
  1456. * @param bool $isGensVoyage
  1457. */
  1458. public function setIsGensVoyage($isGensVoyage): static
  1459. {
  1460. $this->isGensVoyage = $isGensVoyage;
  1461. return $this;
  1462. }
  1463. /**
  1464. * Get isGensVoyage.
  1465. *
  1466. * @return bool
  1467. */
  1468. public function getIsGensVoyage()
  1469. {
  1470. return $this->isGensVoyage;
  1471. }
  1472. /**
  1473. * Set nbParticipantActivite.
  1474. *
  1475. * @param int $nbParticipantActivite
  1476. */
  1477. public function setNbParticipantActivite($nbParticipantActivite): static
  1478. {
  1479. $this->nbParticipantActivite = $nbParticipantActivite;
  1480. return $this;
  1481. }
  1482. /**
  1483. * Get nbParticipantActivite.
  1484. *
  1485. * @return int
  1486. */
  1487. public function getNbParticipantActivite()
  1488. {
  1489. return $this->nbParticipantActivite;
  1490. }
  1491. /**
  1492. * Set nbParticipantAction.
  1493. *
  1494. * @param int $nbParticipantAction
  1495. */
  1496. public function setNbParticipantAction($nbParticipantAction): static
  1497. {
  1498. $this->nbParticipantAction = $nbParticipantAction;
  1499. return $this;
  1500. }
  1501. /**
  1502. * Get nbParticipantAction.
  1503. *
  1504. * @return int
  1505. */
  1506. public function getNbParticipantAction()
  1507. {
  1508. return $this->nbParticipantAction;
  1509. }
  1510. /**
  1511. * Set nbParticipantPonctuel.
  1512. *
  1513. * @param int $nbParticipantPonctuel
  1514. */
  1515. public function setNbParticipantPonctuel($nbParticipantPonctuel): static
  1516. {
  1517. $this->nbParticipantPonctuel = $nbParticipantPonctuel;
  1518. return $this;
  1519. }
  1520. /**
  1521. * Get nbParticipantPonctuel.
  1522. *
  1523. * @return int
  1524. */
  1525. public function getNbParticipantPonctuel()
  1526. {
  1527. return $this->nbParticipantPonctuel;
  1528. }
  1529. /**
  1530. * Set dureeAgrement.
  1531. *
  1532. * @param int $dureeAgrement
  1533. */
  1534. public function setDureeAgrement($dureeAgrement): static
  1535. {
  1536. $this->dureeAgrement = $dureeAgrement;
  1537. return $this;
  1538. }
  1539. /**
  1540. * Get dureeAgrement.
  1541. *
  1542. * @return int
  1543. */
  1544. public function getDureeAgrement()
  1545. {
  1546. return $this->dureeAgrement;
  1547. }
  1548. /**
  1549. * Set nbCommuneUrbain.
  1550. *
  1551. * @param int $nbCommuneUrbain
  1552. */
  1553. public function setNbCommuneUrbain($nbCommuneUrbain): static
  1554. {
  1555. $this->nbCommuneUrbain = $nbCommuneUrbain;
  1556. return $this;
  1557. }
  1558. /**
  1559. * Get nbCommuneUrbain.
  1560. *
  1561. * @return int
  1562. */
  1563. public function getNbCommuneUrbain()
  1564. {
  1565. return $this->nbCommuneUrbain;
  1566. }
  1567. /**
  1568. * Set nbCommuneRural.
  1569. *
  1570. * @param int $nbCommuneRural
  1571. */
  1572. public function setNbCommuneRural($nbCommuneRural): static
  1573. {
  1574. $this->nbCommuneRural = $nbCommuneRural;
  1575. return $this;
  1576. }
  1577. /**
  1578. * Get nbCommuneRural.
  1579. *
  1580. * @return int
  1581. */
  1582. public function getNbCommuneRural()
  1583. {
  1584. return $this->nbCommuneRural;
  1585. }
  1586. /**
  1587. * Add fichesAction.
  1588. */
  1589. public function addFichesAction(FicheAction $fichesAction): static
  1590. {
  1591. $this->fichesAction[] = $fichesAction;
  1592. return $this;
  1593. }
  1594. /**
  1595. * Remove fichesAction.
  1596. */
  1597. public function removeFichesAction(FicheAction $fichesAction): void
  1598. {
  1599. $this->fichesAction->removeElement($fichesAction);
  1600. }
  1601. /**
  1602. * Get fichesAction.
  1603. *
  1604. * @return Collection
  1605. */
  1606. public function getFichesAction()
  1607. {
  1608. return $this->fichesAction;
  1609. }
  1610. /**
  1611. * Set observation.
  1612. *
  1613. * @param string $observation
  1614. */
  1615. public function setObservation($observation): static
  1616. {
  1617. $this->observation = $observation;
  1618. return $this;
  1619. }
  1620. /**
  1621. * Get observation.
  1622. *
  1623. * @return string
  1624. */
  1625. public function getObservation()
  1626. {
  1627. return $this->observation;
  1628. }
  1629. /**
  1630. * Set agrementDuree.
  1631. */
  1632. public function setAgrementDuree(?AgrementDuree $agrementDuree = null): static
  1633. {
  1634. $this->agrementDuree = $agrementDuree;
  1635. return $this;
  1636. }
  1637. /**
  1638. * Get agrementDuree.
  1639. *
  1640. * @return AgrementDuree
  1641. */
  1642. public function getAgrementDuree()
  1643. {
  1644. return $this->agrementDuree;
  1645. }
  1646. /**
  1647. * Set axeProjet1.
  1648. *
  1649. * @param string $axeProjet1
  1650. */
  1651. public function setAxeProjet1($axeProjet1): static
  1652. {
  1653. $this->axeProjet1 = $axeProjet1;
  1654. return $this;
  1655. }
  1656. /**
  1657. * Get axeProjet1.
  1658. *
  1659. * @return string
  1660. */
  1661. public function getAxeProjet1()
  1662. {
  1663. return $this->axeProjet1;
  1664. }
  1665. /**
  1666. * Set axeProjet2.
  1667. *
  1668. * @param string $axeProjet2
  1669. */
  1670. public function setAxeProjet2($axeProjet2): static
  1671. {
  1672. $this->axeProjet2 = $axeProjet2;
  1673. return $this;
  1674. }
  1675. /**
  1676. * Get axeProjet2.
  1677. *
  1678. * @return string
  1679. */
  1680. public function getAxeProjet2()
  1681. {
  1682. return $this->axeProjet2;
  1683. }
  1684. /**
  1685. * Set axeProjet3.
  1686. *
  1687. * @param string $axeProjet3
  1688. */
  1689. public function setAxeProjet3($axeProjet3): static
  1690. {
  1691. $this->axeProjet3 = $axeProjet3;
  1692. return $this;
  1693. }
  1694. /**
  1695. * Get axeProjet3.
  1696. *
  1697. * @return string
  1698. */
  1699. public function getAxeProjet3()
  1700. {
  1701. return $this->axeProjet3;
  1702. }
  1703. /**
  1704. * Set axeProjet4.
  1705. *
  1706. * @param string $axeProjet4
  1707. */
  1708. public function setAxeProjet4($axeProjet4): static
  1709. {
  1710. $this->axeProjet4 = $axeProjet4;
  1711. return $this;
  1712. }
  1713. /**
  1714. * Get axeProjet4.
  1715. *
  1716. * @return string
  1717. */
  1718. public function getAxeProjet4()
  1719. {
  1720. return $this->axeProjet4;
  1721. }
  1722. /**
  1723. * Set axeProjet5.
  1724. *
  1725. * @param string $axeProjet5
  1726. */
  1727. public function setAxeProjet5($axeProjet5): static
  1728. {
  1729. $this->axeProjet5 = $axeProjet5;
  1730. return $this;
  1731. }
  1732. /**
  1733. * Get axeProjet5.
  1734. *
  1735. * @return string
  1736. */
  1737. public function getAxeProjet5()
  1738. {
  1739. return $this->axeProjet5;
  1740. }
  1741. /**
  1742. * Set token.
  1743. *
  1744. * @param string $token
  1745. */
  1746. public function setToken($token): static
  1747. {
  1748. $this->token = $token;
  1749. return $this;
  1750. }
  1751. /**
  1752. * Get token.
  1753. *
  1754. * @return string
  1755. */
  1756. public function getToken()
  1757. {
  1758. return $this->token;
  1759. }
  1760. /**
  1761. * Add adherentAutreFederation2.
  1762. */
  1763. public function addAdherentAutreFederation2(AdherentAutreFederation $adherentAutreFederation2): static
  1764. {
  1765. $this->adherentAutreFederation2[] = $adherentAutreFederation2;
  1766. return $this;
  1767. }
  1768. /**
  1769. * Remove adherentAutreFederation2.
  1770. */
  1771. public function removeAdherentAutreFederation2(AdherentAutreFederation $adherentAutreFederation2): void
  1772. {
  1773. $this->adherentAutreFederation2->removeElement($adherentAutreFederation2);
  1774. }
  1775. /**
  1776. * Get adherentAutreFederation2.
  1777. *
  1778. * @return Collection
  1779. */
  1780. public function getAdherentAutreFederation2()
  1781. {
  1782. return $this->adherentAutreFederation2;
  1783. }
  1784. /**
  1785. * Set grandeRegion.
  1786. */
  1787. public function setGrandeRegion(?GrandeRegion $grandeRegion = null): static
  1788. {
  1789. $this->grandeRegion = $grandeRegion;
  1790. return $this;
  1791. }
  1792. /**
  1793. * Get grandeRegion.
  1794. *
  1795. * @return GrandeRegion
  1796. */
  1797. public function getGrandeRegion()
  1798. {
  1799. return $this->grandeRegion;
  1800. }
  1801. /**
  1802. * Set ficheSynthetique.
  1803. */
  1804. public function setFicheSynthetique(?FicheSynthetique $ficheSynthetique = null): static
  1805. {
  1806. $this->ficheSynthetique = $ficheSynthetique;
  1807. return $this;
  1808. }
  1809. /**
  1810. * Get ficheSynthetique.
  1811. *
  1812. * @return FicheSynthetique
  1813. */
  1814. public function getFicheSynthetique()
  1815. {
  1816. return $this->ficheSynthetique;
  1817. }
  1818. /**
  1819. * Set directorName.
  1820. *
  1821. * @param string $directorName
  1822. */
  1823. public function setDirectorName($directorName): static
  1824. {
  1825. $this->directorName = $directorName;
  1826. return $this;
  1827. }
  1828. /**
  1829. * Get directorName.
  1830. *
  1831. * @return string
  1832. */
  1833. public function getDirectorName()
  1834. {
  1835. return $this->directorName;
  1836. }
  1837. /**
  1838. * Set presidentName.
  1839. *
  1840. * @param string $presidentName
  1841. */
  1842. public function setPresidentName($presidentName): static
  1843. {
  1844. $this->presidentName = $presidentName;
  1845. return $this;
  1846. }
  1847. /**
  1848. * Get presidentName.
  1849. *
  1850. * @return string
  1851. */
  1852. public function getPresidentName()
  1853. {
  1854. return $this->presidentName;
  1855. }
  1856. /**
  1857. * If manually uploading a file (i.e. not using Symfony Form) ensure an instance
  1858. * of 'UploadedFile' is injected into this setter to trigger the update. If this
  1859. * bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
  1860. * must be able to accept an instance of 'File' as the bundle will inject one here
  1861. * during Doctrine hydration.
  1862. *
  1863. * @return Product
  1864. */
  1865. public function setLogoFile(?File $image = null): static
  1866. {
  1867. $this->logoFile = $image;
  1868. if ($image instanceof File) {
  1869. // It is required that at least one field changes if you are using doctrine
  1870. // otherwise the event listeners won't be called and the file is lost
  1871. $this->updatedAt = new \DateTime('now');
  1872. }
  1873. return $this;
  1874. }
  1875. public function getLogoFile(): ?File
  1876. {
  1877. return $this->logoFile;
  1878. }
  1879. public function setLogo($file = null): void
  1880. {
  1881. $this->logo = $file;
  1882. }
  1883. public function getLogo()
  1884. {
  1885. return $this->logo;
  1886. }
  1887. /**
  1888. * Set haveSystemeAdhesion.
  1889. *
  1890. * @param bool $haveSystemeAdhesion
  1891. */
  1892. public function setHaveSystemeAdhesion($haveSystemeAdhesion): static
  1893. {
  1894. $this->haveSystemeAdhesion = $haveSystemeAdhesion;
  1895. return $this;
  1896. }
  1897. /**
  1898. * Get haveSystemeAdhesion.
  1899. *
  1900. * @return bool
  1901. */
  1902. public function getHaveSystemeAdhesion()
  1903. {
  1904. return $this->haveSystemeAdhesion;
  1905. }
  1906. /**
  1907. * Set createdAt.
  1908. */
  1909. public function setCreatedAt(?\DateTime $createdAt): static
  1910. {
  1911. $this->createdAt = $createdAt;
  1912. return $this;
  1913. }
  1914. /**
  1915. * Get createdAt.
  1916. */
  1917. public function getCreatedAt(): ?\DateTime
  1918. {
  1919. return $this->createdAt;
  1920. }
  1921. /**
  1922. * Set updatedAt.
  1923. */
  1924. public function setUpdatedAt(\DateTime $updatedAt): static
  1925. {
  1926. $this->updatedAt = $updatedAt;
  1927. return $this;
  1928. }
  1929. /**
  1930. * Get updatedAt.
  1931. */
  1932. public function getUpdatedAt(): \DateTime
  1933. {
  1934. return $this->updatedAt;
  1935. }
  1936. /**
  1937. * Set latitude.
  1938. *
  1939. * @param float $latitude
  1940. */
  1941. public function setLatitude($latitude): static
  1942. {
  1943. if (is_string($latitude)) {
  1944. $latitude = floatval($latitude);
  1945. }
  1946. $this->latitude = $latitude;
  1947. return $this;
  1948. }
  1949. /**
  1950. * Get latitude.
  1951. *
  1952. * @return float
  1953. */
  1954. public function getLatitude()
  1955. {
  1956. return $this->latitude;
  1957. }
  1958. /**
  1959. * Set longitude.
  1960. *
  1961. * @param float $longitude
  1962. */
  1963. public function setLongitude($longitude): static
  1964. {
  1965. if (is_string($longitude)) {
  1966. $longitude = floatval($longitude);
  1967. }
  1968. $this->longitude = $longitude;
  1969. return $this;
  1970. }
  1971. /**
  1972. * Get longitude.
  1973. *
  1974. * @return float
  1975. */
  1976. public function getLongitude()
  1977. {
  1978. return $this->longitude;
  1979. }
  1980. /**
  1981. * Set isDelete.
  1982. *
  1983. * @param bool $isDelete
  1984. */
  1985. public function setIsDelete($isDelete): static
  1986. {
  1987. $this->isDelete = $isDelete;
  1988. return $this;
  1989. }
  1990. /**
  1991. * Get isDelete.
  1992. *
  1993. * @return bool
  1994. */
  1995. public function getIsDelete()
  1996. {
  1997. return $this->isDelete;
  1998. }
  1999. /**
  2000. * Set activityDomain.
  2001. *
  2002. * @param string $activityDomain
  2003. */
  2004. public function setActivityDomain($activityDomain): static
  2005. {
  2006. $this->activityDomain = $activityDomain;
  2007. return $this;
  2008. }
  2009. /**
  2010. * Get activityDomain.
  2011. *
  2012. * @return string
  2013. */
  2014. public function getActivityDomain()
  2015. {
  2016. return $this->activityDomain;
  2017. }
  2018. /**
  2019. * Set canShowCSO.
  2020. *
  2021. * @param bool $canShowCSO
  2022. */
  2023. public function setCanShowCSO($canShowCSO): static
  2024. {
  2025. $this->canShowCSO = $canShowCSO;
  2026. return $this;
  2027. }
  2028. /**
  2029. * Get canShowCSO.
  2030. */
  2031. public function getCanShowCSO(): ?bool
  2032. {
  2033. return $this->canShowCSO;
  2034. }
  2035. /**
  2036. * Set canShowEVS.
  2037. *
  2038. * @param bool $canShowEVS
  2039. */
  2040. public function setCanShowEVS($canShowEVS): static
  2041. {
  2042. $this->canShowEVS = $canShowEVS;
  2043. return $this;
  2044. }
  2045. /**
  2046. * Get canShowEVS.
  2047. */
  2048. public function getCanShowEVS(): ?bool
  2049. {
  2050. return $this->canShowEVS;
  2051. }
  2052. /**
  2053. * Set hasEVSAgrement.
  2054. *
  2055. * @param bool $hasEVSAgrement
  2056. */
  2057. public function setHasEVSAgrement($hasEVSAgrement): static
  2058. {
  2059. $this->hasEVSAgrement = $hasEVSAgrement;
  2060. return $this;
  2061. }
  2062. /**
  2063. * Get hasEVSAgrement.
  2064. */
  2065. public function getHasEVSAgrement(): ?bool
  2066. {
  2067. return $this->hasEVSAgrement;
  2068. }
  2069. /**
  2070. * Set qpvNumbers.
  2071. *
  2072. * @param string $qpvNumbers
  2073. */
  2074. public function setQpvNumbers($qpvNumbers): static
  2075. {
  2076. $this->qpvNumbers = $qpvNumbers;
  2077. return $this;
  2078. }
  2079. public function getQpvsForExport(): string
  2080. {
  2081. $return = '';
  2082. $separator = '';
  2083. foreach ($this->qpvs as $qpv) {
  2084. $return .= $separator.$qpv->getCodeQuartier();
  2085. $separator = ', ';
  2086. }
  2087. return $return;
  2088. }
  2089. /**
  2090. * Get qpvNumbers.
  2091. */
  2092. public function getQpvNumbers(): string
  2093. {
  2094. return $this->qpvNumbers.'anciennes données';
  2095. }
  2096. /**
  2097. * Set zrrCities.
  2098. *
  2099. * @param string $zrrCities
  2100. */
  2101. public function setZrrCities($zrrCities): static
  2102. {
  2103. $this->zrrCities = $zrrCities;
  2104. return $this;
  2105. }
  2106. /**
  2107. * Get zrrCities.
  2108. *
  2109. * @return string
  2110. */
  2111. public function getZrrCities()
  2112. {
  2113. return $this->zrrCities;
  2114. }
  2115. /**
  2116. * Set isMultiSites.
  2117. *
  2118. * @param bool $isMultiSites
  2119. */
  2120. public function setIsMultiSites($isMultiSites): static
  2121. {
  2122. $this->isMultiSites = $isMultiSites;
  2123. return $this;
  2124. }
  2125. /**
  2126. * Get isMultiSites.
  2127. *
  2128. * @return bool
  2129. */
  2130. public function getIsMultiSites()
  2131. {
  2132. return $this->isMultiSites;
  2133. }
  2134. /**
  2135. * Set isItinerante.
  2136. *
  2137. * @param bool $isItinerante
  2138. */
  2139. public function setIsItinerante($isItinerante): static
  2140. {
  2141. $this->isItinerante = $isItinerante;
  2142. return $this;
  2143. }
  2144. /**
  2145. * Get isItinerante.
  2146. *
  2147. * @return bool
  2148. */
  2149. public function getIsItinerante()
  2150. {
  2151. return $this->isItinerante;
  2152. }
  2153. /**
  2154. * Set hasactionToHelpPersonRightsAccess.
  2155. *
  2156. * @param bool $hasactionToHelpPersonRightsAccess
  2157. */
  2158. public function setHasactionToHelpPersonRightsAccess($hasactionToHelpPersonRightsAccess): static
  2159. {
  2160. $this->hasactionToHelpPersonRightsAccess = $hasactionToHelpPersonRightsAccess;
  2161. return $this;
  2162. }
  2163. /**
  2164. * Get hasactionToHelpPersonRightsAccess.
  2165. *
  2166. * @return bool
  2167. */
  2168. public function getHasactionToHelpPersonRightsAccess()
  2169. {
  2170. return $this->hasactionToHelpPersonRightsAccess;
  2171. }
  2172. /**
  2173. * Set actionsToHelpPersonRightsAccess.
  2174. *
  2175. * @param array $actionsToHelpPersonRightsAccess
  2176. */
  2177. public function setActionsToHelpPersonRightsAccess($actionsToHelpPersonRightsAccess): static
  2178. {
  2179. $this->actionsToHelpPersonRightsAccess = $actionsToHelpPersonRightsAccess;
  2180. return $this;
  2181. }
  2182. /**
  2183. * Get actionsToHelpPersonRightsAccess.
  2184. *
  2185. * @return array
  2186. */
  2187. public function getActionsToHelpPersonRightsAccess()
  2188. {
  2189. // if($this->actionsToHelpPersonRightsAccess==""){
  2190. // return [];
  2191. // }
  2192. return $this->actionsToHelpPersonRightsAccess;
  2193. }
  2194. /**
  2195. * Set actionsToHelpPersonRightsAccessOther.
  2196. *
  2197. * @param string $actionsToHelpPersonRightsAccessOther
  2198. */
  2199. public function setActionsToHelpPersonRightsAccessOther($actionsToHelpPersonRightsAccessOther): static
  2200. {
  2201. $this->actionsToHelpPersonRightsAccessOther = $actionsToHelpPersonRightsAccessOther;
  2202. return $this;
  2203. }
  2204. /**
  2205. * Get actionsToHelpPersonRightsAccessOther.
  2206. *
  2207. * @return string
  2208. */
  2209. public function getActionsToHelpPersonRightsAccessOther()
  2210. {
  2211. return $this->actionsToHelpPersonRightsAccessOther;
  2212. }
  2213. /**
  2214. * Add systemeAdhesionGoal.
  2215. */
  2216. public function addSystemeAdhesionGoal(SystemeAdhesionGoal $systemeAdhesionGoal): static
  2217. {
  2218. $this->systemeAdhesionGoal[] = $systemeAdhesionGoal;
  2219. return $this;
  2220. }
  2221. /**
  2222. * Remove systemeAdhesionGoal.
  2223. */
  2224. public function removeSystemeAdhesionGoal(SystemeAdhesionGoal $systemeAdhesionGoal): void
  2225. {
  2226. $this->systemeAdhesionGoal->removeElement($systemeAdhesionGoal);
  2227. }
  2228. /**
  2229. * Get systemeAdhesionGoal.
  2230. *
  2231. * @return Collection
  2232. */
  2233. public function getSystemeAdhesionGoal()
  2234. {
  2235. return $this->systemeAdhesionGoal;
  2236. }
  2237. /**
  2238. * Add qpv.
  2239. */
  2240. public function addQpv(QPV $qpv): static
  2241. {
  2242. $this->qpvs[] = $qpv;
  2243. return $this;
  2244. }
  2245. /**
  2246. * Remove qpv.
  2247. */
  2248. public function removeQpv(QPV $qpv): void
  2249. {
  2250. $this->qpvs->removeElement($qpv);
  2251. }
  2252. /**
  2253. * Get qpvs.
  2254. *
  2255. * @return Collection
  2256. */
  2257. public function getQpvs()
  2258. {
  2259. return $this->qpvs;
  2260. }
  2261. /**
  2262. * Set nbAssociationAdhereProjetStructure.
  2263. *
  2264. * @param int $nbAssociationAdhereProjetStructure
  2265. */
  2266. public function setNbAssociationAdhereProjetStructure($nbAssociationAdhereProjetStructure): static
  2267. {
  2268. $this->nbAssociationAdhereProjetStructure = $nbAssociationAdhereProjetStructure;
  2269. return $this;
  2270. }
  2271. /**
  2272. * Get nbAssociationAdhereProjetStructure.
  2273. *
  2274. * @return int
  2275. */
  2276. public function getNbAssociationAdhereProjetStructure()
  2277. {
  2278. return $this->nbAssociationAdhereProjetStructure;
  2279. }
  2280. }