src/Entity/FicheSynthetique.php line 27

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Repository\FicheSynthetiqueRepository;
  5. use Doctrine\DBAL\Types\Types;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Gedmo\Mapping\Annotation as Gedmo;
  8. use Symfony\Component\HttpFoundation\File\File;
  9. use Symfony\Component\HttpFoundation\File\UploadedFile;
  10. use Vich\UploaderBundle\Entity\File as EmbeddedFile;
  11. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  12. /**
  13. * FicheSynthetique.
  14. *
  15. * @ORM\Table(name="FicheSynthetique")
  16. *
  17. * @ORM\Entity(repositoryClass=FicheSynthetiqueRepository::class)
  18. *
  19. * @Vich\Uploadable
  20. *
  21. * @ORM\HasLifecycleCallbacks
  22. */
  23. class FicheSynthetique
  24. {
  25. /**
  26. * @var int
  27. *
  28. * @ORM\Column(name="id", type="integer")
  29. *
  30. * @ORM\Id
  31. *
  32. * @ORM\GeneratedValue(strategy="AUTO")
  33. */
  34. private $id;
  35. /**
  36. * @var string
  37. *
  38. * @ORM\Column(name="zoneCompetencePrecisionNbHabitants", type="text", nullable=true)
  39. */
  40. private $zoneCompetencePrecisionNbHabitants;
  41. /**
  42. * @var string
  43. *
  44. * @ORM\Column(name="zoneSocialAxesFortsActionTerritoire", type="text", nullable=true)
  45. */
  46. private $zoneSocialAxesFortsActionTerritoire;
  47. /**
  48. * @var string
  49. *
  50. * @ORM\Column(name="shortTitleProjetSocialPrecisionAxe1", type="string", length=255, nullable=true)
  51. */
  52. private $shortTitleProjetSocialPrecisionAxe1;
  53. /**
  54. * @var string
  55. *
  56. * @ORM\Column(name="projetSocialPrecisionAxe1", type="text", nullable=true)
  57. */
  58. private $projetSocialPrecisionAxe1;
  59. /**
  60. * @var string
  61. *
  62. * @ORM\Column(name="shortTitleProjetSocialPrecisionAxe2", type="string", length=255, nullable=true)
  63. */
  64. private $shortTitleProjetSocialPrecisionAxe2;
  65. /**
  66. * @var string
  67. *
  68. * @ORM\Column(name="projetSocialPrecisionAxe2", type="text", nullable=true)
  69. */
  70. private $projetSocialPrecisionAxe2;
  71. /**
  72. * @var string
  73. *
  74. * @ORM\Column(name="shortTitleProjetSocialPrecisionAxe3", type="string", length=255, nullable=true)
  75. */
  76. private $shortTitleProjetSocialPrecisionAxe3;
  77. /**
  78. * @var string
  79. *
  80. * @ORM\Column(name="projetSocialPrecisionAxe3", type="text", nullable=true)
  81. */
  82. private $projetSocialPrecisionAxe3;
  83. /**
  84. * @var string
  85. *
  86. * @ORM\Column(name="partenariatModalitesTravailemblematique", type="text", nullable=true)
  87. */
  88. private $partenariatModalitesTravailemblematique;
  89. /**
  90. * @var int
  91. *
  92. * @ORM\Column(name="moyenHumainValorisationMethod", type="integer", nullable=true)
  93. */
  94. private $moyenHumainValorisationMethod;
  95. /**
  96. * @var string
  97. *
  98. * @ORM\Column(name="moyenHumainLsQstID", type="string", length=255, nullable=true)
  99. */
  100. private $moyenHumainLsQstID;
  101. /**
  102. * @var string
  103. *
  104. * @ORM\Column(name="moyenHumainLsAnalyse", type="text", nullable=true)
  105. */
  106. private $moyenHumainLsAnalyse;
  107. /**
  108. * @var string
  109. *
  110. * @ORM\Column(name="moyenHumainInfo", type="text", nullable=true)
  111. */
  112. private $moyenHumainInfo;
  113. /**
  114. * @var string
  115. *
  116. * @ORM\Column(name="moyensfinanciersAnalyse", type="text", nullable=true)
  117. */
  118. private $moyensfinanciersAnalyse;
  119. /**
  120. * @ORM\OneToOne(targetEntity="Structure", inversedBy="ficheSynthetique")
  121. *
  122. * @ORM\JoinColumn(name="structure_id", referencedColumnName="id", onDelete="CASCADE")
  123. */
  124. private $structure;
  125. /**
  126. * @var string
  127. *
  128. * @ORM\Column(name="ficheActionEmblematiqueTitle", type="string", length=255, nullable=true)
  129. */
  130. private $ficheActionEmblematiqueTitle;
  131. /**
  132. * @ORM\OneToOne(targetEntity="FicheAction", inversedBy="ficheSynthetique")
  133. *
  134. * @ORM\JoinColumn(name="ficheAction_id", referencedColumnName="id", onDelete="SET NULL")
  135. */
  136. private $ficheAction;
  137. /**
  138. * @var string
  139. *
  140. * @ORM\Column(name="themeCleTitle", type="string", length=255, nullable=true)
  141. */
  142. private $themeCleTitle;
  143. /**
  144. * @var string
  145. *
  146. * @ORM\Column(name="themeCleBody", type="text", nullable=true)
  147. */
  148. private $themeCleBody;
  149. /**
  150. * @var string
  151. *
  152. * @ORM\Column(name="pointSurTerritoire", type="text", nullable=true)
  153. */
  154. private $pointSurTerritoire;
  155. /**
  156. * @var string
  157. *
  158. * @ORM\Column(name="analyse_divers", type="text", nullable=true)
  159. */
  160. private $analyseDivers;
  161. /**
  162. * @Vich\UploadableField(mapping="ficheSynthetique_logo", fileNameProperty="logo.name", size="logo.size", mimeType="logo.mimeType", originalName="logo.originalName", dimensions="logo.dimensions")
  163. */
  164. private ?File $logoFile = null;
  165. /**
  166. * @ORM\Embedded(class="Vich\UploaderBundle\Entity\File")
  167. */
  168. private ?EmbeddedFile $logo = null;
  169. /**
  170. * @ORM\Column(name="createdAt", type="datetime", nullable=true)
  171. */
  172. private \DateTime $createdAt;
  173. /**
  174. * @ORM\Column(name="updatedAt", type="datetime", nullable=true)
  175. *
  176. * @Gedmo\Timestampable(on="update")
  177. */
  178. private \DateTime $updatedAt;
  179. public function __construct()
  180. {
  181. $this->createdAt = new \DateTime('now');
  182. $this->updatedAt = new \DateTime('now');
  183. $this->logo = new EmbeddedFile();
  184. }
  185. /**
  186. * Get id.
  187. *
  188. * @return int
  189. */
  190. public function getId()
  191. {
  192. return $this->id;
  193. }
  194. /**
  195. * Set zoneCompetencePrecisionNbHabitants.
  196. *
  197. * @param string $zoneCompetencePrecisionNbHabitants
  198. */
  199. public function setZoneCompetencePrecisionNbHabitants($zoneCompetencePrecisionNbHabitants): static
  200. {
  201. $this->zoneCompetencePrecisionNbHabitants = $zoneCompetencePrecisionNbHabitants;
  202. return $this;
  203. }
  204. /**
  205. * Get zoneCompetencePrecisionNbHabitants.
  206. *
  207. * @return string
  208. */
  209. public function getZoneCompetencePrecisionNbHabitants()
  210. {
  211. return $this->zoneCompetencePrecisionNbHabitants;
  212. }
  213. /**
  214. * Set zoneSocialAxesFortsActionTerritoire.
  215. *
  216. * @param string $zoneSocialAxesFortsActionTerritoire
  217. */
  218. public function setZoneSocialAxesFortsActionTerritoire($zoneSocialAxesFortsActionTerritoire): static
  219. {
  220. $this->zoneSocialAxesFortsActionTerritoire = $zoneSocialAxesFortsActionTerritoire;
  221. return $this;
  222. }
  223. /**
  224. * Get zoneSocialAxesFortsActionTerritoire.
  225. *
  226. * @return string
  227. */
  228. public function getZoneSocialAxesFortsActionTerritoire()
  229. {
  230. return $this->zoneSocialAxesFortsActionTerritoire;
  231. }
  232. /**
  233. * Set projetSocialPrecisionAxe1.
  234. *
  235. * @param string $projetSocialPrecisionAxe1
  236. */
  237. public function setProjetSocialPrecisionAxe1($projetSocialPrecisionAxe1): static
  238. {
  239. $this->projetSocialPrecisionAxe1 = $projetSocialPrecisionAxe1;
  240. return $this;
  241. }
  242. /**
  243. * Get projetSocialPrecisionAxe1.
  244. *
  245. * @return string
  246. */
  247. public function getProjetSocialPrecisionAxe1()
  248. {
  249. return $this->projetSocialPrecisionAxe1;
  250. }
  251. /**
  252. * Set projetSocialPrecisionAxe2.
  253. *
  254. * @param string $projetSocialPrecisionAxe2
  255. */
  256. public function setProjetSocialPrecisionAxe2($projetSocialPrecisionAxe2): static
  257. {
  258. $this->projetSocialPrecisionAxe2 = $projetSocialPrecisionAxe2;
  259. return $this;
  260. }
  261. /**
  262. * Get projetSocialPrecisionAxe2.
  263. *
  264. * @return string
  265. */
  266. public function getProjetSocialPrecisionAxe2()
  267. {
  268. return $this->projetSocialPrecisionAxe2;
  269. }
  270. /**
  271. * Set projetSocialPrecisionAxe3.
  272. *
  273. * @param string $projetSocialPrecisionAxe3
  274. */
  275. public function setProjetSocialPrecisionAxe3($projetSocialPrecisionAxe3): static
  276. {
  277. $this->projetSocialPrecisionAxe3 = $projetSocialPrecisionAxe3;
  278. return $this;
  279. }
  280. /**
  281. * Get projetSocialPrecisionAxe3.
  282. *
  283. * @return string
  284. */
  285. public function getProjetSocialPrecisionAxe3()
  286. {
  287. return $this->projetSocialPrecisionAxe3;
  288. }
  289. /**
  290. * Set moyenHumainValorisationMethod.
  291. *
  292. * @param int $moyenHumainValorisationMethod
  293. */
  294. public function setMoyenHumainValorisationMethod($moyenHumainValorisationMethod): static
  295. {
  296. $this->moyenHumainValorisationMethod = $moyenHumainValorisationMethod;
  297. return $this;
  298. }
  299. /**
  300. * Get moyenHumainValorisationMethod.
  301. *
  302. * @return int
  303. */
  304. public function getMoyenHumainValorisationMethod()
  305. {
  306. return $this->moyenHumainValorisationMethod;
  307. }
  308. /**
  309. * Set moyenHumainLsQstID.
  310. *
  311. * @param string $moyenHumainLsQstID
  312. */
  313. public function setMoyenHumainLsQstID($moyenHumainLsQstID): static
  314. {
  315. $this->moyenHumainLsQstID = $moyenHumainLsQstID;
  316. return $this;
  317. }
  318. /**
  319. * Get moyenHumainLsQstID.
  320. *
  321. * @return string
  322. */
  323. public function getMoyenHumainLsQstID()
  324. {
  325. return $this->moyenHumainLsQstID;
  326. }
  327. /**
  328. * Set moyenHumainLsAnalyse.
  329. *
  330. * @param string $moyenHumainLsAnalyse
  331. */
  332. public function setMoyenHumainLsAnalyse($moyenHumainLsAnalyse): static
  333. {
  334. $this->moyenHumainLsAnalyse = $moyenHumainLsAnalyse;
  335. return $this;
  336. }
  337. /**
  338. * Get moyenHumainLsAnalyse.
  339. *
  340. * @return string
  341. */
  342. public function getMoyenHumainLsAnalyse()
  343. {
  344. return $this->moyenHumainLsAnalyse;
  345. }
  346. /**
  347. * Set structure.
  348. */
  349. public function setStructure(?Structure $structure = null): static
  350. {
  351. $this->structure = $structure;
  352. return $this;
  353. }
  354. /**
  355. * Get structure.
  356. *
  357. * @return Structure
  358. */
  359. public function getStructure()
  360. {
  361. return $this->structure;
  362. }
  363. /**
  364. * Set partenariatModalitesTravailemblematique.
  365. *
  366. * @param string $partenariatModalitesTravailemblematique
  367. */
  368. public function setPartenariatModalitesTravailemblematique($partenariatModalitesTravailemblematique): static
  369. {
  370. $this->partenariatModalitesTravailemblematique = $partenariatModalitesTravailemblematique;
  371. return $this;
  372. }
  373. /**
  374. * Get partenariatModalitesTravailemblematique.
  375. *
  376. * @return string
  377. */
  378. public function getPartenariatModalitesTravailemblematique()
  379. {
  380. return $this->partenariatModalitesTravailemblematique;
  381. }
  382. /**
  383. * Set moyenHumainInfo.
  384. *
  385. * @param string $moyenHumainInfo
  386. */
  387. public function setMoyenHumainInfo($moyenHumainInfo): static
  388. {
  389. $this->moyenHumainInfo = $moyenHumainInfo;
  390. return $this;
  391. }
  392. /**
  393. * Get moyenHumainInfo.
  394. *
  395. * @return string
  396. */
  397. public function getMoyenHumainInfo()
  398. {
  399. return $this->moyenHumainInfo;
  400. }
  401. /**
  402. * Set moyensfinanciersAnalyse.
  403. *
  404. * @param string $moyensfinanciersAnalyse
  405. */
  406. public function setMoyensfinanciersAnalyse($moyensfinanciersAnalyse): static
  407. {
  408. $this->moyensfinanciersAnalyse = $moyensfinanciersAnalyse;
  409. return $this;
  410. }
  411. /**
  412. * Get moyensfinanciersAnalyse.
  413. *
  414. * @return string
  415. */
  416. public function getMoyensfinanciersAnalyse()
  417. {
  418. return $this->moyensfinanciersAnalyse;
  419. }
  420. /**
  421. * If manually uploading a file (i.e. not using Symfony Form) ensure an instance
  422. * of 'UploadedFile' is injected into this setter to trigger the update. If this
  423. * bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
  424. * must be able to accept an instance of 'File' as the bundle will inject one here
  425. * during Doctrine hydration.
  426. *
  427. * @return Product
  428. */
  429. public function setLogoFile(?File $logoFile): FicheSynthetique
  430. {
  431. $this->logoFile = $logoFile;
  432. if ($this->logoFile instanceof UploadedFile) {
  433. // It is required that at least one field changes if you are using doctrine
  434. // otherwise the event listeners won't be called and the file is lost
  435. $this->updatedAt = new \DateTime('now');
  436. }
  437. return $this;
  438. }
  439. public function getLogoFile(): ?File
  440. {
  441. return $this->logoFile;
  442. }
  443. public function setLogo(?EmbeddedFile $logo = null): void
  444. {
  445. $this->logo = $logo;
  446. }
  447. public function getLogo(): ?EmbeddedFile
  448. {
  449. return $this->logo;
  450. }
  451. /**
  452. * Set createdAt.
  453. */
  454. public function setCreatedAt(\DateTime $createdAt): static
  455. {
  456. $this->createdAt = $createdAt;
  457. return $this;
  458. }
  459. /**
  460. * Get createdAt.
  461. */
  462. public function getCreatedAt(): \DateTime
  463. {
  464. return $this->createdAt;
  465. }
  466. /**
  467. * Set updatedAt.
  468. */
  469. public function setUpdatedAt(\DateTime $updatedAt): static
  470. {
  471. $this->updatedAt = $updatedAt;
  472. return $this;
  473. }
  474. /**
  475. * Get updatedAt.
  476. */
  477. public function getUpdatedAt(): \DateTime
  478. {
  479. return $this->updatedAt;
  480. }
  481. /**
  482. * Set ficheAction.
  483. */
  484. public function setFicheAction(?FicheAction $ficheAction = null): static
  485. {
  486. $this->ficheAction = $ficheAction;
  487. return $this;
  488. }
  489. /**
  490. * Get ficheAction.
  491. *
  492. * @return FicheAction
  493. */
  494. public function getFicheAction()
  495. {
  496. return $this->ficheAction;
  497. }
  498. /**
  499. * Set ficheActionEmblematiqueTitle.
  500. *
  501. * @param string $ficheActionEmblematiqueTitle
  502. */
  503. public function setFicheActionEmblematiqueTitle($ficheActionEmblematiqueTitle): static
  504. {
  505. $this->ficheActionEmblematiqueTitle = $ficheActionEmblematiqueTitle;
  506. return $this;
  507. }
  508. /**
  509. * Get ficheActionEmblematiqueTitle.
  510. *
  511. * @return string
  512. */
  513. public function getFicheActionEmblematiqueTitle()
  514. {
  515. return $this->ficheActionEmblematiqueTitle;
  516. }
  517. /**
  518. * Set themeCleTitle.
  519. *
  520. * @param string $themeCleTitle
  521. */
  522. public function setThemeCleTitle($themeCleTitle): static
  523. {
  524. $this->themeCleTitle = $themeCleTitle;
  525. return $this;
  526. }
  527. /**
  528. * Get themeCleTitle.
  529. *
  530. * @return string
  531. */
  532. public function getThemeCleTitle()
  533. {
  534. return $this->themeCleTitle;
  535. }
  536. /**
  537. * Set themeCleBody.
  538. *
  539. * @param string $themeCleBody
  540. */
  541. public function setThemeCleBody($themeCleBody): static
  542. {
  543. $this->themeCleBody = $themeCleBody;
  544. return $this;
  545. }
  546. /**
  547. * Get themeCleBody.
  548. *
  549. * @return string
  550. */
  551. public function getThemeCleBody()
  552. {
  553. return $this->themeCleBody;
  554. }
  555. /**
  556. * Set pointSurTerritoire.
  557. *
  558. * @param string $pointSurTerritoire
  559. */
  560. public function setPointSurTerritoire($pointSurTerritoire): static
  561. {
  562. $this->pointSurTerritoire = $pointSurTerritoire;
  563. return $this;
  564. }
  565. /**
  566. * Get pointSurTerritoire.
  567. *
  568. * @return string
  569. */
  570. public function getPointSurTerritoire()
  571. {
  572. return $this->pointSurTerritoire;
  573. }
  574. /**
  575. * Set shortTitleProjetSocialPrecisionAxe1.
  576. *
  577. * @param string $shortTitleProjetSocialPrecisionAxe1
  578. */
  579. public function setShortTitleProjetSocialPrecisionAxe1($shortTitleProjetSocialPrecisionAxe1): static
  580. {
  581. $this->shortTitleProjetSocialPrecisionAxe1 = $shortTitleProjetSocialPrecisionAxe1;
  582. return $this;
  583. }
  584. /**
  585. * Get shortTitleProjetSocialPrecisionAxe1.
  586. *
  587. * @return string
  588. */
  589. public function getShortTitleProjetSocialPrecisionAxe1()
  590. {
  591. return $this->shortTitleProjetSocialPrecisionAxe1;
  592. }
  593. /**
  594. * Set shortTitleProjetSocialPrecisionAxe2.
  595. *
  596. * @param string $shortTitleProjetSocialPrecisionAxe2
  597. */
  598. public function setShortTitleProjetSocialPrecisionAxe2($shortTitleProjetSocialPrecisionAxe2): static
  599. {
  600. $this->shortTitleProjetSocialPrecisionAxe2 = $shortTitleProjetSocialPrecisionAxe2;
  601. return $this;
  602. }
  603. /**
  604. * Get shortTitleProjetSocialPrecisionAxe2.
  605. *
  606. * @return string
  607. */
  608. public function getShortTitleProjetSocialPrecisionAxe2()
  609. {
  610. return $this->shortTitleProjetSocialPrecisionAxe2;
  611. }
  612. /**
  613. * Set shortTitleProjetSocialPrecisionAxe3.
  614. *
  615. * @param string $shortTitleProjetSocialPrecisionAxe3
  616. */
  617. public function setShortTitleProjetSocialPrecisionAxe3($shortTitleProjetSocialPrecisionAxe3): static
  618. {
  619. $this->shortTitleProjetSocialPrecisionAxe3 = $shortTitleProjetSocialPrecisionAxe3;
  620. return $this;
  621. }
  622. /**
  623. * Get shortTitleProjetSocialPrecisionAxe3.
  624. *
  625. * @return string
  626. */
  627. public function getShortTitleProjetSocialPrecisionAxe3()
  628. {
  629. return $this->shortTitleProjetSocialPrecisionAxe3;
  630. }
  631. /**
  632. * Set analyseDivers.
  633. *
  634. * @param string $analyseDivers
  635. */
  636. public function setAnalyseDivers($analyseDivers): static
  637. {
  638. $this->analyseDivers = $analyseDivers;
  639. return $this;
  640. }
  641. /**
  642. * Get analyseDivers.
  643. *
  644. * @return string
  645. */
  646. public function getAnalyseDivers()
  647. {
  648. return $this->analyseDivers;
  649. }
  650. }