src/Entity/Cotation.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Doctrine\ORM\Mapping\JoinTable;
  7. use Doctrine\ORM\Mapping\ManyToMany;
  8. use Symfony\Component\Validator\Constraints as Assert;
  9. /**
  10. * Cotation
  11. *
  12. * @ORM\Table(name="cotation", uniqueConstraints={@ORM\UniqueConstraint(name="cotation_id_uindex", columns={"id"})}, indexes={@ORM\Index(name="cotation_manager_id_fk", columns={"manager_id"}), @ORM\Index(name="cotation_company_id_fk", columns={"company_id"}), @ORM\Index(name="cotation_situation_gas_elec_id_fk", columns={"electricity_situation_id"}), @ORM\Index(name="cotation_supplier_id_fk", columns={"electricity_supplier_id"}), @ORM\Index(name="cotation_user_id_fk", columns={"user_id"}), @ORM\Index(name="cotation_situation_gas_elec_id_fk_2", columns={"gas_situation_id"}), @ORM\Index(name="cotation_supplier_id_fk_2", columns={"gas_supplier_id"})})
  13. * @ORM\Entity(repositoryClass="App\Repository\CotationRepository")
  14. */
  15. class Cotation
  16. {
  17. /**
  18. * @var int
  19. *
  20. * @ORM\Column(name="id", type="integer", nullable=false)
  21. * @ORM\Id
  22. * @ORM\GeneratedValue(strategy="IDENTITY")
  23. */
  24. private $id;
  25. /**
  26. * @var string|null
  27. *
  28. * @ORM\Column(name="name", type="string", length=255, nullable=true)
  29. */
  30. private $name;
  31. /**
  32. * @var string|null
  33. *
  34. * @ORM\Column(name="company_name", type="string", length=255, nullable=true)
  35. */
  36. private $companyName;
  37. /**
  38. * @var string|null
  39. *
  40. * @ORM\Column(name="place_name", type="string", length=255, nullable=true)
  41. */
  42. private $placeName;
  43. /**
  44. * @var string|null
  45. *
  46. * @ORM\Column(name="siret", type="string", length=255, nullable=true)
  47. */
  48. private $siret;
  49. /**
  50. * @var string|null
  51. *
  52. * @ORM\Column(name="first_name", type="string", length=255, nullable=true)
  53. */
  54. private $firstName;
  55. /**
  56. * @var string|null
  57. *
  58. * @ORM\Column(name="last_name", type="string", length=255, nullable=true)
  59. */
  60. private $lastName;
  61. /**
  62. * @var string|null
  63. *
  64. * @ORM\Column(name="position", type="string", length=255, nullable=true)
  65. */
  66. private $position;
  67. /**
  68. * @var string|null
  69. *
  70. * @ORM\Column(name="address", type="string", length=255, nullable=true)
  71. */
  72. private $address;
  73. /**
  74. * @var string|null
  75. *
  76. * @ORM\Column(name="address_2", type="string", length=255, nullable=true)
  77. */
  78. private $address2;
  79. /**
  80. * @var string|null
  81. *
  82. * @ORM\Column(name="zip_code", type="string", length=255, nullable=true)
  83. */
  84. private $zipCode;
  85. /**
  86. * @var string|null
  87. *
  88. * @ORM\Column(name="city", type="string", length=255, nullable=true)
  89. */
  90. private $city;
  91. /**
  92. * @var string|null
  93. *
  94. * @ORM\Column(name="billing_address", type="string", length=255, nullable=true)
  95. */
  96. private $billingAddress;
  97. /**
  98. * @var string|null
  99. *
  100. * @ORM\Column(name="billing_address_2", type="string", length=255, nullable=true)
  101. */
  102. private $billingAddress2;
  103. /**
  104. * @var string|null
  105. *
  106. * @ORM\Column(name="billing_zip_code", type="string", length=255, nullable=true)
  107. */
  108. private $billingZipCode;
  109. /**
  110. * @var string|null
  111. *
  112. * @ORM\Column(name="billing_city", type="string", length=255, nullable=true)
  113. */
  114. private $billingCity;
  115. /**
  116. * @var string|null
  117. *
  118. * @ORM\Column(name="phone", type="string", length=255, nullable=true)
  119. */
  120. private $phone;
  121. /**
  122. * @var string|null
  123. *
  124. * @ORM\Column(name="email", type="string", length=255, nullable=true)
  125. */
  126. private $email;
  127. /**
  128. * @var string|null
  129. *
  130. * @ORM\Column(name="ape_code", type="string", length=255, nullable=true)
  131. */
  132. private $apeCode;
  133. /**
  134. * @var string|null
  135. *
  136. * @ORM\Column(name="sector", type="string", length=255, nullable=true)
  137. */
  138. private $sector;
  139. /**
  140. * @var int|null
  141. *
  142. * @ORM\Column(name="creditsafe_note", type="integer", nullable=true)
  143. */
  144. private $creditsafeNote = 0;
  145. /**
  146. * @var int|null
  147. *
  148. * @ORM\Column(name="elipro_note", type="integer", nullable=true)
  149. */
  150. private $eliproNote = 0;
  151. /**
  152. * @var \DateTime|null
  153. *
  154. * @ORM\Column(name="creation_date", type="datetime", nullable=true)
  155. */
  156. private $creationDate;
  157. /**
  158. * @var \DateTime|null
  159. *
  160. * @ORM\Column(name="edit_date", type="datetime", nullable=true)
  161. */
  162. private $editDate;
  163. /**
  164. * @var \DateTime|null
  165. *
  166. * @ORM\Column(name="appointment_date", type="datetime", nullable=true)
  167. */
  168. private $appointmentDate;
  169. /**
  170. * @var string|null
  171. *
  172. * @ORM\Column(name="tarif_type", type="string", length=255, nullable=true)
  173. */
  174. private $tarifType;
  175. /**
  176. * @var string|null
  177. *
  178. * @ORM\Column(name="desired_margin", type="string", length=255, nullable=true)
  179. */
  180. private $desiredMargin;
  181. /**
  182. * @var bool|null
  183. *
  184. * @ORM\Column(name="gas", type="boolean", nullable=true)
  185. */
  186. private $gas = false;
  187. /**
  188. * @var bool|null
  189. *
  190. * @ORM\Column(name="electricity", type="boolean", nullable=true)
  191. */
  192. private $electricity = false;
  193. /**
  194. * @var \DateTime|null
  195. *
  196. * @ORM\Column(name="e_desired_begin", type="date", nullable=true)
  197. */
  198. private $eDesiredBegin;
  199. /**
  200. * @var \DateTime|null
  201. *
  202. * @ORM\Column(name="e_desired_end", type="date", nullable=true)
  203. */
  204. private $eDesiredEnd;
  205. /**
  206. * @var int|null
  207. *
  208. * @ORM\Column(name="e_nombre_mois", type="integer", nullable=true)
  209. */
  210. private $eNombreMois = 0;
  211. /**
  212. * @var string|null
  213. *
  214. * @ORM\Column(name="e_pdl", type="string", length=255, nullable=true)
  215. */
  216. private $ePdl;
  217. /**
  218. * @var string|null
  219. *
  220. * @ORM\Column(name="e_rae", type="string", length=255, nullable=true)
  221. */
  222. private $eRae;
  223. /**
  224. * @var string|null
  225. *
  226. * @ORM\Column(name="e_segment", type="string", length=255, nullable=true)
  227. */
  228. private $eSegment;
  229. /**
  230. * @var string|null
  231. *
  232. * @ORM\Column(name="e_formule_acheminement", type="string", length=255, nullable=true)
  233. */
  234. private $eFormuleAcheminement;
  235. /**
  236. * @var float|null
  237. *
  238. * @ORM\Column(name="e_car_mwh", type="float", precision=10, scale=0, nullable=true)
  239. */
  240. private $eCarMwh = 0;
  241. /**
  242. * @var float|null
  243. *
  244. * @ORM\Column(name="e_consommation_pointe", type="float", precision=10, scale=0, nullable=true)
  245. */
  246. private $eConsommationPointe = 0;
  247. /**
  248. * @var float|null
  249. *
  250. * @ORM\Column(name="e_consommation_hph", type="float", precision=10, scale=0, nullable=true)
  251. */
  252. private $eConsommationHph = 0;
  253. /**
  254. * @var float|null
  255. *
  256. * @ORM\Column(name="e_consommation_hch", type="float", precision=10, scale=0, nullable=true)
  257. */
  258. private $eConsommationHch = 0;
  259. /**
  260. * @var float|null
  261. *
  262. * @ORM\Column(name="e_consommation_hpe", type="float", precision=10, scale=0, nullable=true)
  263. */
  264. private $eConsommationHpe = 0;
  265. /**
  266. * @var float|null
  267. *
  268. * @ORM\Column(name="e_consommation_hce", type="float", precision=10, scale=0, nullable=true)
  269. */
  270. private $eConsommationHce = 0;
  271. /**
  272. * @var float|null
  273. *
  274. * @ORM\Column(name="e_puissance_kva_pointe", type="float", precision=10, scale=0, nullable=true)
  275. */
  276. private $ePuissanceKvaPointe = 0;
  277. /**
  278. * @var float|null
  279. *
  280. * @ORM\Column(name="e_puissance_kva_hph", type="float", precision=10, scale=0, nullable=true)
  281. */
  282. private $ePuissanceKvaHph = 0;
  283. /**
  284. * @var float|null
  285. *
  286. * @ORM\Column(name="e_puissance_kva_hch", type="float", precision=10, scale=0, nullable=true)
  287. */
  288. private $ePuissanceKvaHch = 0;
  289. /**
  290. * @var float|null
  291. *
  292. * @ORM\Column(name="e_puissance_kva_hpe", type="float", precision=10, scale=0, nullable=true)
  293. */
  294. private $ePuissanceKvaHpe = 0;
  295. /**
  296. * @var float|null
  297. *
  298. * @ORM\Column(name="e_puissance_kva_hce", type="float", precision=10, scale=0, nullable=true)
  299. */
  300. private $ePuissanceKvaHce = 0;
  301. /**
  302. * @var string|null
  303. *
  304. * @ORM\Column(name="e_address", type="string", length=255, nullable=true)
  305. */
  306. private $eAddress;
  307. /**
  308. * @var string|null
  309. *
  310. * @ORM\Column(name="e_address2", type="string", length=255, nullable=true)
  311. */
  312. private $eAddress2;
  313. /**
  314. * @var string|null
  315. *
  316. * @ORM\Column(name="e_zip_code", type="string", length=255, nullable=true)
  317. */
  318. private $eZipCode;
  319. /**
  320. * @var string|null
  321. *
  322. * @ORM\Column(name="e_city", type="string", length=255, nullable=true)
  323. */
  324. private $eCity;
  325. /**
  326. * @var \DateTime|null
  327. *
  328. * @ORM\Column(name="g_desired_begin", type="date", nullable=true)
  329. */
  330. private $gDesiredBegin;
  331. /**
  332. * @var \DateTime|null
  333. *
  334. * @ORM\Column(name="g_desired_end", type="date", nullable=true)
  335. */
  336. private $gDesiredEnd;
  337. /**
  338. * @var int|null
  339. *
  340. * @ORM\Column(name="g_nombre_mois", type="integer", nullable=true)
  341. */
  342. private $gNombreMois = 0;
  343. /**
  344. * @var string|null
  345. *
  346. * @ORM\Column(name="g_pce", type="string", length=255, nullable=true)
  347. */
  348. private $gPce;
  349. /**
  350. * @var string|null
  351. *
  352. * @ORM\Column(name="g_segment", type="string", length=255, nullable=true)
  353. */
  354. private $gSegment;
  355. /**
  356. * @var float|null
  357. *
  358. * @ORM\Column(name="g_car_mwh", type="float", precision=10, scale=0, nullable=true)
  359. */
  360. private $gCarMwh = 0;
  361. /**
  362. * @var string|null
  363. *
  364. * @ORM\Column(name="g_profil", type="string", length=30, nullable=true)
  365. */
  366. private $gProfil;
  367. /**
  368. * @var string|null
  369. *
  370. * @ORM\Column(name="g_address", type="string", length=255, nullable=true)
  371. */
  372. private $gAddress;
  373. /**
  374. * @var string|null
  375. *
  376. * @ORM\Column(name="g_address2", type="string", length=255, nullable=true)
  377. */
  378. private $gAddress2;
  379. /**
  380. * @var string|null
  381. *
  382. * @ORM\Column(name="g_zip_code", type="string", length=255, nullable=true)
  383. */
  384. private $gZipCode;
  385. /**
  386. * @var string|null
  387. *
  388. * @ORM\Column(name="g_city", type="string", length=255, nullable=true)
  389. */
  390. private $gCity;
  391. /**
  392. * @var string|null
  393. *
  394. * @ORM\Column(name="acd_file", type="string", length=255, nullable=true)
  395. */
  396. private $acdFile;
  397. /**
  398. * @var \DateTime|null
  399. *
  400. * @ORM\Column(name="acd_sign_date", type="datetime", length=255, nullable=true)
  401. */
  402. private $acdSignDate;
  403. /**
  404. * @var string|null
  405. *
  406. * @ORM\Column(name="electricity_data_file", type="string", length=255, nullable=true)
  407. */
  408. private $electricityDataFile;
  409. /**
  410. * @var string|null
  411. *
  412. * @ORM\Column(name="gas_data_file", type="string", length=255, nullable=true)
  413. */
  414. private $gasDataFile;
  415. /**
  416. * @var string|null
  417. *
  418. * @ORM\Column(name="old_invoice", type="string", length=255, nullable=true)
  419. */
  420. private $oldInvoice;
  421. /**
  422. * @var string|null
  423. *
  424. * @ORM\Column(name="fact_elec", type="string", length=255, nullable=true)
  425. */
  426. private $factElec;
  427. /**
  428. * @var string|null
  429. *
  430. * @ORM\Column(name="fact_gas", type="string", length=255, nullable=true)
  431. */
  432. private $factGas;
  433. /**
  434. * @var string|null
  435. *
  436. * @ORM\Column(name="liasse_fiscale", type="string", length=255, nullable=true)
  437. */
  438. private $liasseFiscale;
  439. /**
  440. * @var string|null
  441. *
  442. * @ORM\Column(name="sge_elec", type="string", length=255, nullable=true)
  443. */
  444. private $sgeElec;
  445. /**
  446. * @var string|null
  447. *
  448. * @ORM\Column(name="omega_gas", type="string", length=255, nullable=true)
  449. */
  450. private $omegaGas;
  451. /**
  452. * @var float|null
  453. *
  454. * @ORM\Column(name="turpe_cta", type="float", precision=10, scale=0, nullable=true)
  455. */
  456. private $turpeCta;
  457. /**
  458. * @var float|null
  459. *
  460. * @ORM\Column(name="turpe_total", type="float", precision=10, scale=0, nullable=true)
  461. */
  462. private $turpeTotal;
  463. /**
  464. * @var string|null
  465. *
  466. * @ORM\Column(name="sepa_iban", type="string", length=100, nullable=true)
  467. * @Assert\Iban(message="Le format IBAN est invalide.")
  468. */
  469. private $sepaIban;
  470. /**
  471. * @var string|null
  472. *
  473. * @ORM\Column(name="sepa_bic", type="string", length=50, nullable=true)
  474. * @Assert\Bic(message="Le format du BIC est invalide.")
  475. */
  476. private $sepaBic;
  477. /**
  478. * @var string|null
  479. *
  480. * @ORM\Column(name="remind_count", type="integer", nullable=true)
  481. */
  482. private $remindCount = 0;
  483. /**
  484. * @var \DateTime|null
  485. *
  486. * @ORM\Column(name="remind_date", type="datetime", nullable=true)
  487. */
  488. private $remindDate;
  489. /**
  490. * @var \DateTime|null
  491. *
  492. * @ORM\Column(name="resiliation_elec_email_sent_date", type="datetime", nullable=true)
  493. */
  494. private $resiliationElecEmailSendDate;
  495. /**
  496. * @var string|null
  497. *
  498. * @ORM\Column(name="resiliation_elec_email_content", type="text", nullable=true)
  499. */
  500. private $resiliationElecEmailContent;
  501. /**
  502. * @var \DateTime|null
  503. *
  504. * @ORM\Column(name="resiliation_gas_email_sent_date", type="datetime", nullable=true)
  505. */
  506. private $resiliationGasEmailSendDate;
  507. /**
  508. * @var string|null
  509. *
  510. * @ORM\Column(name="resiliation_gas_email_content", type="text", nullable=true)
  511. */
  512. private $resiliationGasEmailContent;
  513. /**
  514. * @var \DateTime|null
  515. *
  516. * @ORM\Column(name="pricing_sent_date", type="datetime", nullable=true)
  517. */
  518. private $pricingSentDate;
  519. /**
  520. * @var Supplier
  521. *
  522. * @ORM\ManyToOne(targetEntity="Supplier")
  523. * @ORM\JoinColumns({
  524. * @ORM\JoinColumn(name="gas_supplier_id", referencedColumnName="id")
  525. * })
  526. */
  527. private $gasSupplier;
  528. /**
  529. * @var Company
  530. *
  531. * @ORM\ManyToOne(targetEntity="Company")
  532. * @ORM\JoinColumns({
  533. * @ORM\JoinColumn(name="company_id", referencedColumnName="id")
  534. * })
  535. */
  536. private $company;
  537. /**
  538. * @var SituationGasElec
  539. *
  540. * @ORM\ManyToOne(targetEntity="SituationGasElec")
  541. * @ORM\JoinColumns({
  542. * @ORM\JoinColumn(name="electricity_situation_id", referencedColumnName="id")
  543. * })
  544. */
  545. private $electricitySituation;
  546. /**
  547. * @var Supplier
  548. *
  549. * @ORM\ManyToOne(targetEntity="Supplier")
  550. * @ORM\JoinColumns({
  551. * @ORM\JoinColumn(name="electricity_supplier_id", referencedColumnName="id")
  552. * })
  553. */
  554. private $electricitySupplier;
  555. /**
  556. * @var User
  557. *
  558. * @ORM\ManyToOne(targetEntity="User")
  559. * @ORM\JoinColumns({
  560. * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
  561. * })
  562. */
  563. private $user;
  564. /**
  565. * @var Manager
  566. *
  567. * @ORM\ManyToOne(targetEntity="Manager")
  568. * @ORM\JoinColumns({
  569. * @ORM\JoinColumn(name="manager_id", referencedColumnName="id")
  570. * })
  571. */
  572. private $manager;
  573. /**
  574. * @var SituationGasElec
  575. *
  576. * @ORM\ManyToOne(targetEntity="SituationGasElec")
  577. * @ORM\JoinColumns({
  578. * @ORM\JoinColumn(name="gas_situation_id", referencedColumnName="id")
  579. * })
  580. */
  581. private $gasSituation;
  582. /**
  583. * @var CotationState
  584. *
  585. * @ORM\ManyToOne(targetEntity="CotationState")
  586. * @ORM\JoinColumns({
  587. * @ORM\JoinColumn(name="state_id", referencedColumnName="id")
  588. * })
  589. */
  590. private $state;
  591. /**
  592. * @var OfferElec|null
  593. *
  594. * @ORM\ManyToOne(targetEntity="OfferElec", cascade={"remove"})
  595. * @ORM\JoinColumns({
  596. * @ORM\JoinColumn(name="offer_elec_id", referencedColumnName="id")
  597. * })
  598. */
  599. private $selectedOfferElec;
  600. /**
  601. * @var OfferGaz|null
  602. *
  603. * @ORM\ManyToOne(targetEntity="OfferGaz", cascade={"remove"})
  604. * @ORM\JoinColumns({
  605. * @ORM\JoinColumn(name="offer_gaz_id", referencedColumnName="id")
  606. * })
  607. */
  608. private $selectedOfferGaz;
  609. /**
  610. * @var Supplier|null
  611. *
  612. * @ORM\ManyToOne(targetEntity="Supplier")
  613. * @ORM\JoinColumns({
  614. * @ORM\JoinColumn(name="desired_supplier_id", referencedColumnName="id")
  615. * })
  616. */
  617. private $desiredSupplier;
  618. /**
  619. * @var CotationEYearData|null
  620. *
  621. * @ORM\ManyToOne(targetEntity="CotationEYearData", cascade={"persist", "remove"})
  622. * @ORM\JoinColumns({
  623. * @ORM\JoinColumn(name="2024_e_data_id", referencedColumnName="id")
  624. * })
  625. */
  626. private $eYearData_2024;
  627. /**
  628. * @var CotationEYearData|null
  629. *
  630. * @ORM\ManyToOne(targetEntity="CotationEYearData", cascade={"persist", "remove"})
  631. * @ORM\JoinColumns({
  632. * @ORM\JoinColumn(name="2025_e_data_id", referencedColumnName="id")
  633. * })
  634. */
  635. private $eYearData_2025;
  636. /**
  637. * @var CotationEYearData|null
  638. *
  639. * @ORM\ManyToOne(targetEntity="CotationEYearData", cascade={"persist", "remove"})
  640. * @ORM\JoinColumns({
  641. * @ORM\JoinColumn(name="2026_e_data_id", referencedColumnName="id")
  642. * })
  643. */
  644. private $eYearData_2026;
  645. /**
  646. * @var CotationEYearData|null
  647. *
  648. * @ORM\ManyToOne(targetEntity="CotationEYearData", cascade={"persist", "remove"})
  649. * @ORM\JoinColumns({
  650. * @ORM\JoinColumn(name="2027_e_data_id", referencedColumnName="id")
  651. * })
  652. */
  653. private $eYearData_2027;
  654. /**
  655. * @var CotationEYearData|null
  656. *
  657. * @ORM\ManyToOne(targetEntity="CotationEYearData", cascade={"persist", "remove"})
  658. * @ORM\JoinColumns({
  659. * @ORM\JoinColumn(name="2028_e_data_id", referencedColumnName="id")
  660. * })
  661. */
  662. private $eYearData_2028;
  663. /**
  664. * @var CotationEYearData|null
  665. *
  666. * @ORM\ManyToOne(targetEntity="CotationEYearData", cascade={"persist", "remove"})
  667. * @ORM\JoinColumns({
  668. * @ORM\JoinColumn(name="2029_e_data_id", referencedColumnName="id")
  669. * })
  670. */
  671. private $eYearData_2029;
  672. /**
  673. * @var OfferElec|null
  674. *
  675. * @ORM\ManyToOne(targetEntity="OfferElec", cascade={"remove"})
  676. * @ORM\JoinColumns({
  677. * @ORM\JoinColumn(name="preselect_offer_elec_id", referencedColumnName="id")
  678. * })
  679. */
  680. private $preselectedOfferElec;
  681. /**
  682. * @var OfferGaz|null
  683. *
  684. * @ORM\ManyToOne(targetEntity="OfferGaz", cascade={"remove"})
  685. * @ORM\JoinColumns({
  686. * @ORM\JoinColumn(name="preselect_offer_gaz_id", referencedColumnName="id")
  687. * })
  688. */
  689. private $preselectedOfferGaz;
  690. /**
  691. * @var CotationGYearData|null
  692. *
  693. * @ORM\ManyToOne(targetEntity="CotationGYearData", cascade={"persist", "remove"})
  694. * @ORM\JoinColumns({
  695. * @ORM\JoinColumn(name="2024_g_data_id", referencedColumnName="id")
  696. * })
  697. */
  698. private $gYearData_2024;
  699. /**
  700. * @var CotationGYearData|null
  701. *
  702. * @ORM\ManyToOne(targetEntity="CotationGYearData", cascade={"persist", "remove"})
  703. * @ORM\JoinColumns({
  704. * @ORM\JoinColumn(name="2025_g_data_id", referencedColumnName="id")
  705. * })
  706. */
  707. private $gYearData_2025;
  708. /**
  709. * @var CotationGYearData|null
  710. *
  711. * @ORM\ManyToOne(targetEntity="CotationGYearData", cascade={"persist", "remove"})
  712. * @ORM\JoinColumns({
  713. * @ORM\JoinColumn(name="2026_g_data_id", referencedColumnName="id")
  714. * })
  715. */
  716. private $gYearData_2026;
  717. /**
  718. * @var CotationGYearData|null
  719. *
  720. * @ORM\ManyToOne(targetEntity="CotationGYearData", cascade={"persist", "remove"})
  721. * @ORM\JoinColumns({
  722. * @ORM\JoinColumn(name="2027_g_data_id", referencedColumnName="id")
  723. * })
  724. */
  725. private $gYearData_2027;
  726. /**
  727. * @var CotationGYearData|null
  728. *
  729. * @ORM\ManyToOne(targetEntity="CotationGYearData", cascade={"persist", "remove"})
  730. * @ORM\JoinColumns({
  731. * @ORM\JoinColumn(name="2028_g_data_id", referencedColumnName="id")
  732. * })
  733. */
  734. private $gYearData_2028;
  735. /**
  736. * @var CotationGYearData|null
  737. *
  738. * @ORM\ManyToOne(targetEntity="CotationGYearData", cascade={"persist", "remove"})
  739. * @ORM\JoinColumns({
  740. * @ORM\JoinColumn(name="2029_g_data_id", referencedColumnName="id")
  741. * })
  742. */
  743. private $gYearData_2029;
  744. /**
  745. * @var Collection
  746. *
  747. * @ORM\OneToMany(targetEntity="CotationDocument", mappedBy="cotation", cascade={"all"}, orphanRemoval=true)
  748. */
  749. private $otherDocuments;
  750. /**
  751. * @var int|null
  752. *
  753. * @ORM\Column(name="etude_solution_elec", type="integer", nullable=false)
  754. */
  755. private $etudeSolutionElec;
  756. /**
  757. * @var int|null
  758. *
  759. * @ORM\Column(name="etude_solution_gaz", type="integer", nullable=false)
  760. */
  761. private $etudeSolutionGaz;
  762. /**
  763. * @var string|null
  764. *
  765. * @ORM\Column(name="etude_commentaire_elec", type="string", nullable=true)
  766. */
  767. private $etudeCommentaireElec;
  768. /**
  769. * @var string|null
  770. *
  771. * @ORM\Column(name="etude_commentaire_gaz", type="string", nullable=true)
  772. */
  773. private $etudeCommentaireGaz;
  774. /**
  775. * @var Collection
  776. *
  777. * @ManyToMany(targetEntity="Supplier")
  778. * @JoinTable(name="cotation_e_desired_supplier",
  779. * joinColumns={@ORM\JoinColumn(name="cotation_id", referencedColumnName="id")},
  780. * inverseJoinColumns={@ORM\JoinColumn(name="supplier_id", referencedColumnName="id")}
  781. * )
  782. */
  783. private $eDesiredSuppliers;
  784. /**
  785. * @var Collection
  786. *
  787. * @ManyToMany(targetEntity="Supplier")
  788. * @JoinTable(name="cotation_g_desired_supplier",
  789. * joinColumns={@ORM\JoinColumn(name="cotation_id", referencedColumnName="id")},
  790. * inverseJoinColumns={@ORM\JoinColumn(name="supplier_id", referencedColumnName="id")}
  791. * )
  792. */
  793. private $gDesiredSuppliers;
  794. /**
  795. * @var CotationMultisite|null
  796. *
  797. * @ORM\ManyToOne(targetEntity="CotationMultisite", inversedBy="cotations")
  798. * @ORM\JoinColumns({
  799. * @ORM\JoinColumn(name="cotation_multisite_id", referencedColumnName="id", onDelete="CASCADE")
  800. * })
  801. */
  802. private $cotationMultisite;
  803. /**
  804. * @var float|null
  805. *
  806. * @ORM\Column(name="variable_term", type="float", nullable=false)
  807. */
  808. private $variableTerm;
  809. /**
  810. * @var float|null
  811. *
  812. * @ORM\Column(name="ticgn", type="float", nullable=false)
  813. */
  814. private $ticgn;
  815. public function __construct()
  816. {
  817. $this->otherDocuments = new ArrayCollection();
  818. }
  819. /**
  820. * @return int
  821. */
  822. public function getId()
  823. {
  824. return $this->id;
  825. }
  826. /**
  827. * @param int $id
  828. */
  829. public function setId($id)
  830. {
  831. $this->id = $id;
  832. }
  833. public function getName(): ?string
  834. {
  835. return $this->name;
  836. }
  837. public function setName(?string $name): void
  838. {
  839. $this->name = $name;
  840. }
  841. /**
  842. * @return string|null
  843. */
  844. public function getCompanyName()
  845. {
  846. return $this->companyName;
  847. }
  848. /**
  849. * @param string|null $companyName
  850. */
  851. public function setCompanyName($companyName)
  852. {
  853. $this->companyName = $companyName;
  854. }
  855. /**
  856. * @return string|null
  857. */
  858. public function getPlaceName()
  859. {
  860. return $this->placeName;
  861. }
  862. /**
  863. * @param string|null $placeName
  864. */
  865. public function setPlaceName($placeName)
  866. {
  867. $this->placeName = $placeName;
  868. }
  869. /**
  870. * @return string|null
  871. */
  872. public function getSiret()
  873. {
  874. return $this->siret;
  875. }
  876. /**
  877. * @param string|null $siret
  878. */
  879. public function setSiret($siret)
  880. {
  881. $this->siret = $siret;
  882. }
  883. /**
  884. * @return string|null
  885. */
  886. public function getFirstName()
  887. {
  888. return $this->firstName;
  889. }
  890. /**
  891. * @param string|null $firstName
  892. */
  893. public function setFirstName($firstName)
  894. {
  895. $this->firstName = $firstName;
  896. }
  897. /**
  898. * @return string|null
  899. */
  900. public function getLastName()
  901. {
  902. return $this->lastName;
  903. }
  904. /**
  905. * @param string|null $lastName
  906. */
  907. public function setLastName($lastName)
  908. {
  909. $this->lastName = $lastName;
  910. }
  911. /**
  912. * @return string|null
  913. */
  914. public function getPosition()
  915. {
  916. return $this->position;
  917. }
  918. /**
  919. * @param string|null $position
  920. */
  921. public function setPosition($position)
  922. {
  923. $this->position = $position;
  924. }
  925. /**
  926. * @return string|null
  927. */
  928. public function getAddress()
  929. {
  930. return $this->address;
  931. }
  932. /**
  933. * @param string|null $address
  934. */
  935. public function setAddress($address)
  936. {
  937. $this->address = $address;
  938. }
  939. /**
  940. * @return string|null
  941. */
  942. public function getAddress2()
  943. {
  944. return $this->address2;
  945. }
  946. /**
  947. * @param string|null $address2
  948. */
  949. public function setAddress2($address2)
  950. {
  951. $this->address2 = $address2;
  952. }
  953. /**
  954. * @return string|null
  955. */
  956. public function getZipCode()
  957. {
  958. return $this->zipCode;
  959. }
  960. /**
  961. * @param string|null $zipCode
  962. */
  963. public function setZipCode($zipCode)
  964. {
  965. $this->zipCode = $zipCode;
  966. }
  967. /**
  968. * @return string|null
  969. */
  970. public function getCity()
  971. {
  972. return $this->city;
  973. }
  974. /**
  975. * @param string|null $city
  976. */
  977. public function setCity($city)
  978. {
  979. $this->city = $city;
  980. }
  981. /**
  982. * @return string|null
  983. */
  984. public function getBillingAddress()
  985. {
  986. return $this->billingAddress;
  987. }
  988. /**
  989. * @param string|null $billingAddress
  990. */
  991. public function setBillingAddress($billingAddress)
  992. {
  993. $this->billingAddress = $billingAddress;
  994. }
  995. /**
  996. * @return string|null
  997. */
  998. public function getBillingAddress2()
  999. {
  1000. return $this->billingAddress2;
  1001. }
  1002. /**
  1003. * @param string|null $billingAddress2
  1004. */
  1005. public function setBillingAddress2($billingAddress2)
  1006. {
  1007. $this->billingAddress2 = $billingAddress2;
  1008. }
  1009. /**
  1010. * @return string|null
  1011. */
  1012. public function getBillingZipCode()
  1013. {
  1014. return $this->billingZipCode;
  1015. }
  1016. /**
  1017. * @param string|null $billingZipCode
  1018. */
  1019. public function setBillingZipCode($billingZipCode)
  1020. {
  1021. $this->billingZipCode = $billingZipCode;
  1022. }
  1023. /**
  1024. * @return string|null
  1025. */
  1026. public function getBillingCity()
  1027. {
  1028. return $this->billingCity;
  1029. }
  1030. /**
  1031. * @param string|null $billingCity
  1032. */
  1033. public function setBillingCity($billingCity)
  1034. {
  1035. $this->billingCity = $billingCity;
  1036. }
  1037. /**
  1038. * @return string|null
  1039. */
  1040. public function getPhone()
  1041. {
  1042. return $this->phone;
  1043. }
  1044. /**
  1045. * @param string|null $phone
  1046. */
  1047. public function setPhone($phone)
  1048. {
  1049. $this->phone = $phone;
  1050. }
  1051. /**
  1052. * @return string|null
  1053. */
  1054. public function getEmail()
  1055. {
  1056. return $this->email;
  1057. }
  1058. /**
  1059. * @param string|null $email
  1060. */
  1061. public function setEmail($email)
  1062. {
  1063. $this->email = $email;
  1064. }
  1065. public function getApeCode(): ?string
  1066. {
  1067. return $this->apeCode;
  1068. }
  1069. public function setApeCode(?string $apeCode): void
  1070. {
  1071. $this->apeCode = $apeCode;
  1072. }
  1073. public function getSector(): ?string
  1074. {
  1075. return $this->sector;
  1076. }
  1077. public function setSector(?string $sector): void
  1078. {
  1079. $this->sector = $sector;
  1080. }
  1081. /**
  1082. * @return int|null
  1083. */
  1084. public function getCreditsafeNote()
  1085. {
  1086. return $this->creditsafeNote;
  1087. }
  1088. /**
  1089. * @param int|null $creditsafeNote
  1090. */
  1091. public function setCreditsafeNote($creditsafeNote)
  1092. {
  1093. $this->creditsafeNote = $creditsafeNote;
  1094. }
  1095. /**
  1096. * @return int|null
  1097. */
  1098. public function getEliproNote(): ?int
  1099. {
  1100. return $this->eliproNote;
  1101. }
  1102. /**
  1103. * @param int|null $eliproNote
  1104. */
  1105. public function setEliproNote(?int $eliproNote): void
  1106. {
  1107. $this->eliproNote = $eliproNote;
  1108. }
  1109. /**
  1110. * @return \DateTime|null
  1111. */
  1112. public function getCreationDate()
  1113. {
  1114. return $this->creationDate;
  1115. }
  1116. /**
  1117. * @param \DateTime|null $creationDate
  1118. */
  1119. public function setCreationDate($creationDate)
  1120. {
  1121. $this->creationDate = $creationDate;
  1122. }
  1123. /**
  1124. * @return \DateTime|null
  1125. */
  1126. public function getEditDate()
  1127. {
  1128. return $this->editDate;
  1129. }
  1130. /**
  1131. * @param \DateTime|null $editDate
  1132. */
  1133. public function setEditDate($editDate)
  1134. {
  1135. $this->editDate = $editDate;
  1136. }
  1137. /**
  1138. * @return \DateTime|null
  1139. */
  1140. public function getAppointmentDate()
  1141. {
  1142. return $this->appointmentDate;
  1143. }
  1144. /**
  1145. * @param \DateTime|null $appointmentDate
  1146. */
  1147. public function setAppointmentDate($appointmentDate)
  1148. {
  1149. $this->appointmentDate = $appointmentDate;
  1150. }
  1151. /**
  1152. * @return string|null
  1153. */
  1154. public function getTarifType()
  1155. {
  1156. return $this->tarifType;
  1157. }
  1158. /**
  1159. * @param string|null $tarifType
  1160. */
  1161. public function setTarifType($tarifType)
  1162. {
  1163. $this->tarifType = $tarifType;
  1164. }
  1165. /**
  1166. * @return Supplier|null
  1167. */
  1168. public function getDesiredSupplier(): ?Supplier
  1169. {
  1170. return $this->desiredSupplier;
  1171. }
  1172. /**
  1173. * @param Supplier|null $desiredSupplier
  1174. */
  1175. public function setDesiredSupplier(?Supplier $desiredSupplier): void
  1176. {
  1177. $this->desiredSupplier = $desiredSupplier;
  1178. }
  1179. public function getDesiredMargin(): ?string
  1180. {
  1181. return $this->desiredMargin;
  1182. }
  1183. public function setDesiredMargin(?string $desiredMargin): void
  1184. {
  1185. $this->desiredMargin = $desiredMargin;
  1186. }
  1187. /**
  1188. * @return bool|null
  1189. */
  1190. public function getGas()
  1191. {
  1192. return $this->gas;
  1193. }
  1194. /**
  1195. * @param bool|null $gas
  1196. */
  1197. public function setGas($gas)
  1198. {
  1199. $this->gas = $gas;
  1200. }
  1201. /**
  1202. * @return bool|null
  1203. */
  1204. public function getElectricity()
  1205. {
  1206. return $this->electricity;
  1207. }
  1208. /**
  1209. * @param bool|null $electricity
  1210. */
  1211. public function setElectricity($electricity)
  1212. {
  1213. $this->electricity = $electricity;
  1214. }
  1215. /**
  1216. * @return \DateTime|null
  1217. */
  1218. public function getEDesiredBegin()
  1219. {
  1220. return $this->eDesiredBegin;
  1221. }
  1222. /**
  1223. * @param \DateTime|null $eDesiredBegin
  1224. */
  1225. public function setEDesiredBegin($eDesiredBegin)
  1226. {
  1227. $this->eDesiredBegin = $eDesiredBegin;
  1228. }
  1229. /**
  1230. * @return \DateTime|null
  1231. */
  1232. public function getEDesiredEnd()
  1233. {
  1234. return $this->eDesiredEnd;
  1235. }
  1236. /**
  1237. * @param \DateTime|null $eDesiredEnd
  1238. */
  1239. public function setEDesiredEnd($eDesiredEnd)
  1240. {
  1241. $this->eDesiredEnd = $eDesiredEnd;
  1242. }
  1243. /**
  1244. * @return int|null
  1245. */
  1246. public function getENombreMois()
  1247. {
  1248. return $this->eNombreMois;
  1249. }
  1250. /**
  1251. * @param int|null $eNombreMois
  1252. */
  1253. public function setENombreMois($eNombreMois)
  1254. {
  1255. $this->eNombreMois = $eNombreMois;
  1256. }
  1257. /**
  1258. * @return string|null
  1259. */
  1260. public function getEPdl()
  1261. {
  1262. return $this->ePdl;
  1263. }
  1264. /**
  1265. * @param string|null $ePdl
  1266. */
  1267. public function setEPdl($ePdl)
  1268. {
  1269. $this->ePdl = $ePdl;
  1270. }
  1271. /**
  1272. * @return string|null
  1273. */
  1274. public function getERae()
  1275. {
  1276. return $this->eRae;
  1277. }
  1278. /**
  1279. * @param string|null $eRae
  1280. */
  1281. public function setERae($eRae)
  1282. {
  1283. $this->eRae = $eRae;
  1284. }
  1285. /**
  1286. * @return string|null
  1287. */
  1288. public function getESegment()
  1289. {
  1290. return $this->eSegment;
  1291. }
  1292. /**
  1293. * @param string|null $eSegment
  1294. */
  1295. public function setESegment($eSegment)
  1296. {
  1297. $this->eSegment = $eSegment;
  1298. }
  1299. /**
  1300. * @return string|null
  1301. */
  1302. public function getEFormuleAcheminement()
  1303. {
  1304. return $this->eFormuleAcheminement;
  1305. }
  1306. /**
  1307. * @param string|null $eFormuleAcheminement
  1308. */
  1309. public function setEFormuleAcheminement($eFormuleAcheminement)
  1310. {
  1311. $this->eFormuleAcheminement = $eFormuleAcheminement;
  1312. }
  1313. /**
  1314. * @return float|null
  1315. */
  1316. public function getECarMwh()
  1317. {
  1318. return $this->eCarMwh;
  1319. }
  1320. /**
  1321. * @param float|null $eCarMwh
  1322. */
  1323. public function setECarMwh($eCarMwh)
  1324. {
  1325. $this->eCarMwh = $eCarMwh;
  1326. }
  1327. /**
  1328. * @return float|null
  1329. */
  1330. public function getEConsommationPointe()
  1331. {
  1332. return $this->eConsommationPointe;
  1333. }
  1334. /**
  1335. * @param float|null $eConsommationPointe
  1336. */
  1337. public function setEConsommationPointe($eConsommationPointe)
  1338. {
  1339. $this->eConsommationPointe = $eConsommationPointe;
  1340. }
  1341. /**
  1342. * @return float|null
  1343. */
  1344. public function getEConsommationHph()
  1345. {
  1346. return $this->eConsommationHph;
  1347. }
  1348. /**
  1349. * @param float|null $eConsommationHph
  1350. */
  1351. public function setEConsommationHph($eConsommationHph)
  1352. {
  1353. $this->eConsommationHph = $eConsommationHph;
  1354. }
  1355. /**
  1356. * @return float|null
  1357. */
  1358. public function getEConsommationHch()
  1359. {
  1360. return $this->eConsommationHch;
  1361. }
  1362. /**
  1363. * @param float|null $eConsommationHch
  1364. */
  1365. public function setEConsommationHch($eConsommationHch)
  1366. {
  1367. $this->eConsommationHch = $eConsommationHch;
  1368. }
  1369. /**
  1370. * @return float|null
  1371. */
  1372. public function getEConsommationHpe()
  1373. {
  1374. return $this->eConsommationHpe;
  1375. }
  1376. /**
  1377. * @param float|null $eConsommationHpe
  1378. */
  1379. public function setEConsommationHpe($eConsommationHpe)
  1380. {
  1381. $this->eConsommationHpe = $eConsommationHpe;
  1382. }
  1383. /**
  1384. * @return float|null
  1385. */
  1386. public function getEConsommationHce()
  1387. {
  1388. return $this->eConsommationHce;
  1389. }
  1390. /**
  1391. * @param float|null $eConsommationHce
  1392. */
  1393. public function setEConsommationHce($eConsommationHce)
  1394. {
  1395. $this->eConsommationHce = $eConsommationHce;
  1396. }
  1397. /**
  1398. * @return float|null
  1399. */
  1400. public function getEPuissanceKvaPointe()
  1401. {
  1402. return $this->ePuissanceKvaPointe;
  1403. }
  1404. /**
  1405. * @param float|null $ePuissanceKvaPointe
  1406. */
  1407. public function setEPuissanceKvaPointe($ePuissanceKvaPointe)
  1408. {
  1409. $this->ePuissanceKvaPointe = $ePuissanceKvaPointe;
  1410. }
  1411. /**
  1412. * @return float|null
  1413. */
  1414. public function getEPuissanceKvaHph()
  1415. {
  1416. return $this->ePuissanceKvaHph;
  1417. }
  1418. /**
  1419. * @param float|null $ePuissanceKvaHph
  1420. */
  1421. public function setEPuissanceKvaHph($ePuissanceKvaHph)
  1422. {
  1423. $this->ePuissanceKvaHph = $ePuissanceKvaHph;
  1424. }
  1425. /**
  1426. * @return float|null
  1427. */
  1428. public function getEPuissanceKvaHch()
  1429. {
  1430. return $this->ePuissanceKvaHch;
  1431. }
  1432. /**
  1433. * @param float|null $ePuissanceKvaHch
  1434. */
  1435. public function setEPuissanceKvaHch($ePuissanceKvaHch)
  1436. {
  1437. $this->ePuissanceKvaHch = $ePuissanceKvaHch;
  1438. }
  1439. /**
  1440. * @return float|null
  1441. */
  1442. public function getEPuissanceKvaHpe()
  1443. {
  1444. return $this->ePuissanceKvaHpe;
  1445. }
  1446. /**
  1447. * @param float|null $ePuissanceKvaHpe
  1448. */
  1449. public function setEPuissanceKvaHpe($ePuissanceKvaHpe)
  1450. {
  1451. $this->ePuissanceKvaHpe = $ePuissanceKvaHpe;
  1452. }
  1453. /**
  1454. * @return float|null
  1455. */
  1456. public function getEPuissanceKvaHce()
  1457. {
  1458. return $this->ePuissanceKvaHce;
  1459. }
  1460. /**
  1461. * @param float|null $ePuissanceKvaHce
  1462. */
  1463. public function setEPuissanceKvaHce($ePuissanceKvaHce)
  1464. {
  1465. $this->ePuissanceKvaHce = $ePuissanceKvaHce;
  1466. }
  1467. /**
  1468. * @return \DateTime|null
  1469. */
  1470. public function getGDesiredBegin()
  1471. {
  1472. return $this->gDesiredBegin;
  1473. }
  1474. /**
  1475. * @param \DateTime|null $gDesiredBegin
  1476. */
  1477. public function setGDesiredBegin($gDesiredBegin)
  1478. {
  1479. $this->gDesiredBegin = $gDesiredBegin;
  1480. }
  1481. /**
  1482. * @return \DateTime|null
  1483. */
  1484. public function getGDesiredEnd()
  1485. {
  1486. return $this->gDesiredEnd;
  1487. }
  1488. /**
  1489. * @param \DateTime|null $gDesiredEnd
  1490. */
  1491. public function setGDesiredEnd($gDesiredEnd)
  1492. {
  1493. $this->gDesiredEnd = $gDesiredEnd;
  1494. }
  1495. /**
  1496. * @return int|null
  1497. */
  1498. public function getGNombreMois()
  1499. {
  1500. return $this->gNombreMois;
  1501. }
  1502. /**
  1503. * @param int|null $gNombreMois
  1504. */
  1505. public function setGNombreMois($gNombreMois)
  1506. {
  1507. $this->gNombreMois = $gNombreMois;
  1508. }
  1509. /**
  1510. * @return string|null
  1511. */
  1512. public function getGPce()
  1513. {
  1514. return $this->gPce;
  1515. }
  1516. /**
  1517. * @param string|null $gPce
  1518. */
  1519. public function setGPce($gPce)
  1520. {
  1521. $this->gPce = $gPce;
  1522. }
  1523. /**
  1524. * @return string|null
  1525. */
  1526. public function getGSegment()
  1527. {
  1528. return $this->gSegment;
  1529. }
  1530. /**
  1531. * @param string|null $gSegment
  1532. */
  1533. public function setGSegment($gSegment)
  1534. {
  1535. $this->gSegment = $gSegment;
  1536. }
  1537. /**
  1538. * @return float|null
  1539. */
  1540. public function getGCarMwh()
  1541. {
  1542. return $this->gCarMwh;
  1543. }
  1544. /**
  1545. * @param float|null $gCarMwh
  1546. */
  1547. public function setGCarMwh($gCarMwh)
  1548. {
  1549. $this->gCarMwh = $gCarMwh;
  1550. }
  1551. public function getGProfil(): ?string
  1552. {
  1553. return $this->gProfil;
  1554. }
  1555. public function setGProfil(?string $gProfil): void
  1556. {
  1557. $this->gProfil = $gProfil;
  1558. }
  1559. /**
  1560. * @return string|null
  1561. */
  1562. public function getAcdFile()
  1563. {
  1564. return $this->acdFile;
  1565. }
  1566. /**
  1567. * @param string|null $acdFile
  1568. */
  1569. public function setAcdFile($acdFile)
  1570. {
  1571. $this->acdFile = $acdFile;
  1572. }
  1573. public function getAcdSignDate(): ?\DateTime
  1574. {
  1575. return $this->acdSignDate;
  1576. }
  1577. public function setAcdSignDate(?\DateTime $acdSignDate): void
  1578. {
  1579. $this->acdSignDate = $acdSignDate;
  1580. }
  1581. /**
  1582. * @return string|null
  1583. */
  1584. public function getElectricityDataFile()
  1585. {
  1586. return $this->electricityDataFile;
  1587. }
  1588. /**
  1589. * @param string|null $electricityDataFile
  1590. */
  1591. public function setElectricityDataFile($electricityDataFile)
  1592. {
  1593. $this->electricityDataFile = $electricityDataFile;
  1594. }
  1595. /**
  1596. * @return string|null
  1597. */
  1598. public function getGasDataFile()
  1599. {
  1600. return $this->gasDataFile;
  1601. }
  1602. /**
  1603. * @param string|null $gasDataFile
  1604. */
  1605. public function setGasDataFile($gasDataFile)
  1606. {
  1607. $this->gasDataFile = $gasDataFile;
  1608. }
  1609. /**
  1610. * @return string|null
  1611. */
  1612. public function getOldInvoice(): ?string
  1613. {
  1614. return $this->oldInvoice;
  1615. }
  1616. /**
  1617. * @param string|null $oldInvoice
  1618. */
  1619. public function setOldInvoice(?string $oldInvoice): void
  1620. {
  1621. $this->oldInvoice = $oldInvoice;
  1622. }
  1623. /**
  1624. * @return string|null
  1625. */
  1626. public function getFactElec(): ?string
  1627. {
  1628. return $this->factElec;
  1629. }
  1630. /**
  1631. * @param string|null $factElec
  1632. */
  1633. public function setFactElec(?string $factElec): void
  1634. {
  1635. $this->factElec = $factElec;
  1636. }
  1637. /**
  1638. * @return string|null
  1639. */
  1640. public function getFactGas(): ?string
  1641. {
  1642. return $this->factGas;
  1643. }
  1644. /**
  1645. * @param string|null $factGas
  1646. */
  1647. public function setFactGas(?string $factGas): void
  1648. {
  1649. $this->factGas = $factGas;
  1650. }
  1651. /**
  1652. * @return string|null
  1653. */
  1654. public function getLiasseFiscale(): ?string
  1655. {
  1656. return $this->liasseFiscale;
  1657. }
  1658. /**
  1659. * @param string|null $liasseFiscale
  1660. */
  1661. public function setLiasseFiscale(?string $liasseFiscale): void
  1662. {
  1663. $this->liasseFiscale = $liasseFiscale;
  1664. }
  1665. /**
  1666. * @return string|null
  1667. */
  1668. public function getSgeElec(): ?string
  1669. {
  1670. return $this->sgeElec;
  1671. }
  1672. /**
  1673. * @param string|null $sgeElec
  1674. */
  1675. public function setSgeElec(?string $sgeElec): void
  1676. {
  1677. $this->sgeElec = $sgeElec;
  1678. }
  1679. /**
  1680. * @return string|null
  1681. */
  1682. public function getOmegaGas(): ?string
  1683. {
  1684. return $this->omegaGas;
  1685. }
  1686. /**
  1687. * @param string|null $omegaGas
  1688. */
  1689. public function setOmegaGas(?string $omegaGas): void
  1690. {
  1691. $this->omegaGas = $omegaGas;
  1692. }
  1693. /**
  1694. * @return float|null
  1695. */
  1696. public function getTurpeCta(): ?float
  1697. {
  1698. return $this->turpeCta;
  1699. }
  1700. /**
  1701. * @param float|null $turpeCta
  1702. */
  1703. public function setTurpeCta(?float $turpeCta): void
  1704. {
  1705. $this->turpeCta = $turpeCta;
  1706. }
  1707. /**
  1708. * @return float|null
  1709. */
  1710. public function getTurpeTotal(): ?float
  1711. {
  1712. return $this->turpeTotal;
  1713. }
  1714. /**
  1715. * @param float|null $turpeTotal
  1716. */
  1717. public function setTurpeTotal(?float $turpeTotal): void
  1718. {
  1719. $this->turpeTotal = $turpeTotal;
  1720. }
  1721. /**
  1722. * @return Supplier
  1723. */
  1724. public function getGasSupplier()
  1725. {
  1726. return $this->gasSupplier;
  1727. }
  1728. /**
  1729. * @param Supplier $gasSupplier
  1730. */
  1731. public function setGasSupplier($gasSupplier)
  1732. {
  1733. $this->gasSupplier = $gasSupplier;
  1734. }
  1735. /**
  1736. * @return string|null
  1737. */
  1738. public function getSepaIban(): ?string
  1739. {
  1740. return $this->sepaIban;
  1741. }
  1742. /**
  1743. * @param string|null $sepaIban
  1744. */
  1745. public function setSepaIban(?string $sepaIban): void
  1746. {
  1747. $this->sepaIban = $sepaIban;
  1748. }
  1749. /**
  1750. * @return string|null
  1751. */
  1752. public function getSepaBic(): ?string
  1753. {
  1754. return $this->sepaBic;
  1755. }
  1756. /**
  1757. * @param string|null $sepaBic
  1758. */
  1759. public function setSepaBic(?string $sepaBic): void
  1760. {
  1761. $this->sepaBic = $sepaBic;
  1762. }
  1763. /**
  1764. * @return string|null
  1765. */
  1766. public function getRemindCount(): int|string|null
  1767. {
  1768. return $this->remindCount;
  1769. }
  1770. /**
  1771. * @param string|null $remindCount
  1772. */
  1773. public function setRemindCount(int|string|null $remindCount): void
  1774. {
  1775. $this->remindCount = $remindCount;
  1776. }
  1777. /**
  1778. * @return \DateTime|null
  1779. */
  1780. public function getRemindDate(): ?\DateTime
  1781. {
  1782. return $this->remindDate;
  1783. }
  1784. /**
  1785. * @param \DateTime|null $remindDate
  1786. */
  1787. public function setRemindDate(?\DateTime $remindDate): void
  1788. {
  1789. $this->remindDate = $remindDate;
  1790. }
  1791. public function getResiliationElecEmailSendDate(): ?\DateTime
  1792. {
  1793. return $this->resiliationElecEmailSendDate;
  1794. }
  1795. public function setResiliationElecEmailSendDate(?\DateTime $resiliationElecEmailSendDate): void
  1796. {
  1797. $this->resiliationElecEmailSendDate = $resiliationElecEmailSendDate;
  1798. }
  1799. public function getResiliationElecEmailContent(): ?string
  1800. {
  1801. return $this->resiliationElecEmailContent;
  1802. }
  1803. public function setResiliationElecEmailContent(?string $resiliationElecEmailContent): void
  1804. {
  1805. $this->resiliationElecEmailContent = $resiliationElecEmailContent;
  1806. }
  1807. public function getResiliationGasEmailSendDate(): ?\DateTime
  1808. {
  1809. return $this->resiliationGasEmailSendDate;
  1810. }
  1811. public function setResiliationGasEmailSendDate(?\DateTime $resiliationGasEmailSendDate): void
  1812. {
  1813. $this->resiliationGasEmailSendDate = $resiliationGasEmailSendDate;
  1814. }
  1815. public function getResiliationGasEmailContent(): ?string
  1816. {
  1817. return $this->resiliationGasEmailContent;
  1818. }
  1819. public function setResiliationGasEmailContent(?string $resiliationGasEmailContent): void
  1820. {
  1821. $this->resiliationGasEmailContent = $resiliationGasEmailContent;
  1822. }
  1823. public function getPricingSentDate(): ?\DateTime
  1824. {
  1825. return $this->pricingSentDate;
  1826. }
  1827. public function setPricingSentDate(?\DateTime $pricingSentDate): void
  1828. {
  1829. $this->pricingSentDate = $pricingSentDate;
  1830. }
  1831. /**
  1832. * @return Company
  1833. */
  1834. public function getCompany()
  1835. {
  1836. return $this->company;
  1837. }
  1838. /**
  1839. * @param Company $company
  1840. */
  1841. public function setCompany($company)
  1842. {
  1843. $this->company = $company;
  1844. }
  1845. /**
  1846. * @return SituationGasElec
  1847. */
  1848. public function getElectricitySituation()
  1849. {
  1850. return $this->electricitySituation;
  1851. }
  1852. /**
  1853. * @param SituationGasElec $electricitySituation
  1854. */
  1855. public function setElectricitySituation($electricitySituation)
  1856. {
  1857. $this->electricitySituation = $electricitySituation;
  1858. }
  1859. /**
  1860. * @return Supplier
  1861. */
  1862. public function getElectricitySupplier()
  1863. {
  1864. return $this->electricitySupplier;
  1865. }
  1866. /**
  1867. * @param Supplier $electricitySupplier
  1868. */
  1869. public function setElectricitySupplier($electricitySupplier)
  1870. {
  1871. $this->electricitySupplier = $electricitySupplier;
  1872. }
  1873. /**
  1874. * @return User
  1875. */
  1876. public function getUser()
  1877. {
  1878. return $this->user;
  1879. }
  1880. /**
  1881. * @param User $user
  1882. */
  1883. public function setUser($user)
  1884. {
  1885. $this->user = $user;
  1886. }
  1887. /**
  1888. * @return Manager
  1889. */
  1890. public function getManager()
  1891. {
  1892. return $this->manager;
  1893. }
  1894. /**
  1895. * @param Manager $manager
  1896. */
  1897. public function setManager($manager)
  1898. {
  1899. $this->manager = $manager;
  1900. }
  1901. /**
  1902. * @return SituationGasElec
  1903. */
  1904. public function getGasSituation()
  1905. {
  1906. return $this->gasSituation;
  1907. }
  1908. /**
  1909. * @param SituationGasElec $gasSituation
  1910. */
  1911. public function setGasSituation($gasSituation)
  1912. {
  1913. $this->gasSituation = $gasSituation;
  1914. }
  1915. /**
  1916. * @return CotationState
  1917. */
  1918. public function getState()
  1919. {
  1920. return $this->state;
  1921. }
  1922. /**
  1923. * @param CotationState $state
  1924. */
  1925. public function setState($state)
  1926. {
  1927. $this->state = $state;
  1928. }
  1929. /**
  1930. * @return OfferElec|null
  1931. */
  1932. public function getSelectedOfferElec(): ?OfferElec
  1933. {
  1934. return $this->selectedOfferElec;
  1935. }
  1936. /**
  1937. * @param OfferElec|null $selectedOfferElec
  1938. */
  1939. public function setSelectedOfferElec(?OfferElec $selectedOfferElec): void
  1940. {
  1941. $this->selectedOfferElec = $selectedOfferElec;
  1942. }
  1943. /**
  1944. * @return OfferGaz|null
  1945. */
  1946. public function getSelectedOfferGaz(): ?OfferGaz
  1947. {
  1948. return $this->selectedOfferGaz;
  1949. }
  1950. /**
  1951. * @param OfferGaz|null $selectedOfferGaz
  1952. */
  1953. public function setSelectedOfferGaz(?OfferGaz $selectedOfferGaz): void
  1954. {
  1955. $this->selectedOfferGaz = $selectedOfferGaz;
  1956. }
  1957. /**
  1958. * @return CotationEYearData|null
  1959. */
  1960. public function getEYearData2024(): ?CotationEYearData
  1961. {
  1962. return $this->eYearData_2024;
  1963. }
  1964. /**
  1965. * @param CotationEYearData|null $eYearData_2024
  1966. */
  1967. public function setEYearData2024(?CotationEYearData $eYearData_2024): void
  1968. {
  1969. $this->eYearData_2024 = $eYearData_2024;
  1970. }
  1971. /**
  1972. * @return CotationEYearData|null
  1973. */
  1974. public function getEYearData2025(): ?CotationEYearData
  1975. {
  1976. return $this->eYearData_2025;
  1977. }
  1978. /**
  1979. * @param CotationEYearData|null $eYearData_2025
  1980. */
  1981. public function setEYearData2025(?CotationEYearData $eYearData_2025): void
  1982. {
  1983. $this->eYearData_2025 = $eYearData_2025;
  1984. }
  1985. /**
  1986. * @return CotationEYearData|null
  1987. */
  1988. public function getEYearData2026(): ?CotationEYearData
  1989. {
  1990. return $this->eYearData_2026;
  1991. }
  1992. /**
  1993. * @param CotationEYearData|null $eYearData_2026
  1994. */
  1995. public function setEYearData2026(?CotationEYearData $eYearData_2026): void
  1996. {
  1997. $this->eYearData_2026 = $eYearData_2026;
  1998. }
  1999. /**
  2000. * @return CotationEYearData|null
  2001. */
  2002. public function getEYearData2027(): ?CotationEYearData
  2003. {
  2004. return $this->eYearData_2027;
  2005. }
  2006. /**
  2007. * @param CotationEYearData|null $eYearData_2027
  2008. */
  2009. public function setEYearData2027(?CotationEYearData $eYearData_2027): void
  2010. {
  2011. $this->eYearData_2027 = $eYearData_2027;
  2012. }
  2013. public function getEYearData2028(): ?CotationEYearData
  2014. {
  2015. return $this->eYearData_2028;
  2016. }
  2017. public function setEYearData2028(?CotationEYearData $eYearData_2028): void
  2018. {
  2019. $this->eYearData_2028 = $eYearData_2028;
  2020. }
  2021. public function getEYearData2029(): ?CotationEYearData
  2022. {
  2023. return $this->eYearData_2029;
  2024. }
  2025. public function setEYearData2029(?CotationEYearData $eYearData_2029): void
  2026. {
  2027. $this->eYearData_2029 = $eYearData_2029;
  2028. }
  2029. /**
  2030. * @return OfferElec|null
  2031. */
  2032. public function getPreselectedOfferElec(): ?OfferElec
  2033. {
  2034. return $this->preselectedOfferElec;
  2035. }
  2036. /**
  2037. * @param OfferElec|null $preselectedOfferElec
  2038. */
  2039. public function setPreselectedOfferElec(?OfferElec $preselectedOfferElec): void
  2040. {
  2041. $this->preselectedOfferElec = $preselectedOfferElec;
  2042. }
  2043. /**
  2044. * @return OfferGaz|null
  2045. */
  2046. public function getPreselectedOfferGaz(): ?OfferGaz
  2047. {
  2048. return $this->preselectedOfferGaz;
  2049. }
  2050. /**
  2051. * @param OfferGaz|null $preselectedOfferGaz
  2052. */
  2053. public function setPreselectedOfferGaz(?OfferGaz $preselectedOfferGaz): void
  2054. {
  2055. $this->preselectedOfferGaz = $preselectedOfferGaz;
  2056. }
  2057. /**
  2058. * @return CotationGYearData|null
  2059. */
  2060. public function getGYearData2024(): ?CotationGYearData
  2061. {
  2062. return $this->gYearData_2024;
  2063. }
  2064. /**
  2065. * @param CotationGYearData|null $gYearData_2024
  2066. */
  2067. public function setGYearData2024(?CotationGYearData $gYearData_2024): void
  2068. {
  2069. $this->gYearData_2024 = $gYearData_2024;
  2070. }
  2071. /**
  2072. * @return CotationGYearData|null
  2073. */
  2074. public function getGYearData2025(): ?CotationGYearData
  2075. {
  2076. return $this->gYearData_2025;
  2077. }
  2078. /**
  2079. * @param CotationGYearData|null $gYearData_2025
  2080. */
  2081. public function setGYearData2025(?CotationGYearData $gYearData_2025): void
  2082. {
  2083. $this->gYearData_2025 = $gYearData_2025;
  2084. }
  2085. /**
  2086. * @return CotationGYearData|null
  2087. */
  2088. public function getGYearData2026(): ?CotationGYearData
  2089. {
  2090. return $this->gYearData_2026;
  2091. }
  2092. /**
  2093. * @param CotationGYearData|null $gYearData_2026
  2094. */
  2095. public function setGYearData2026(?CotationGYearData $gYearData_2026): void
  2096. {
  2097. $this->gYearData_2026 = $gYearData_2026;
  2098. }
  2099. /**
  2100. * @return CotationGYearData|null
  2101. */
  2102. public function getGYearData2027(): ?CotationGYearData
  2103. {
  2104. return $this->gYearData_2027;
  2105. }
  2106. /**
  2107. * @param CotationGYearData|null $gYearData_2027
  2108. */
  2109. public function setGYearData2027(?CotationGYearData $gYearData_2027): void
  2110. {
  2111. $this->gYearData_2027 = $gYearData_2027;
  2112. }
  2113. public function getGYearData2028(): ?CotationGYearData
  2114. {
  2115. return $this->gYearData_2028;
  2116. }
  2117. public function setGYearData2028(?CotationGYearData $gYearData_2028): void
  2118. {
  2119. $this->gYearData_2028 = $gYearData_2028;
  2120. }
  2121. public function getGYearData2029(): ?CotationGYearData
  2122. {
  2123. return $this->gYearData_2029;
  2124. }
  2125. public function setGYearData2029(?CotationGYearData $gYearData_2029): void
  2126. {
  2127. $this->gYearData_2029 = $gYearData_2029;
  2128. }
  2129. /**
  2130. * @return int|null
  2131. */
  2132. public function getEtudeSolutionElec(): ?int
  2133. {
  2134. return $this->etudeSolutionElec;
  2135. }
  2136. /**
  2137. * @param int|null $etudeSolutionElec
  2138. */
  2139. public function setEtudeSolutionElec(?int $etudeSolutionElec): void
  2140. {
  2141. $this->etudeSolutionElec = $etudeSolutionElec;
  2142. }
  2143. /**
  2144. * @return int|null
  2145. */
  2146. public function getEtudeSolutionGaz(): ?int
  2147. {
  2148. return $this->etudeSolutionGaz;
  2149. }
  2150. /**
  2151. * @param int|null $etudeSolutionGaz
  2152. */
  2153. public function setEtudeSolutionGaz(?int $etudeSolutionGaz): void
  2154. {
  2155. $this->etudeSolutionGaz = $etudeSolutionGaz;
  2156. }
  2157. /**
  2158. * @return string|null
  2159. */
  2160. public function getEtudeCommentaireElec(): ?string
  2161. {
  2162. return $this->etudeCommentaireElec;
  2163. }
  2164. /**
  2165. * @param string|null $etudeCommentaireElec
  2166. */
  2167. public function setEtudeCommentaireElec(?string $etudeCommentaireElec): void
  2168. {
  2169. $this->etudeCommentaireElec = $etudeCommentaireElec;
  2170. }
  2171. /**
  2172. * @return string|null
  2173. */
  2174. public function getEtudeCommentaireGaz(): ?string
  2175. {
  2176. return $this->etudeCommentaireGaz;
  2177. }
  2178. /**
  2179. * @param string|null $etudeCommentaireGaz
  2180. */
  2181. public function setEtudeCommentaireGaz(?string $etudeCommentaireGaz): void
  2182. {
  2183. $this->etudeCommentaireGaz = $etudeCommentaireGaz;
  2184. }
  2185. public function getEDesiredSuppliers(): ?Collection
  2186. {
  2187. return $this->eDesiredSuppliers;
  2188. }
  2189. public function setEDesiredSuppliers(?Collection $eDesiredSuppliers): void
  2190. {
  2191. $this->eDesiredSuppliers = $eDesiredSuppliers;
  2192. }
  2193. public function getGDesiredSuppliers(): ?Collection
  2194. {
  2195. return $this->gDesiredSuppliers;
  2196. }
  2197. public function setGDesiredSuppliers(?Collection $gDesiredSuppliers): void
  2198. {
  2199. $this->gDesiredSuppliers = $gDesiredSuppliers;
  2200. }
  2201. public function getOtherDocuments(): ?Collection
  2202. {
  2203. return $this->otherDocuments;
  2204. }
  2205. public function setOtherDocuments(?Collection $otherDocuments): void
  2206. {
  2207. $this->otherDocuments = $otherDocuments;
  2208. }
  2209. public function getCotationMultisite(): ?CotationMultisite
  2210. {
  2211. return $this->cotationMultisite;
  2212. }
  2213. public function setCotationMultisite(?CotationMultisite $cotationMultisite): void
  2214. {
  2215. $this->cotationMultisite = $cotationMultisite;
  2216. if ($cotationMultisite) {
  2217. if ($this->getManager() === null) { $this->setManager($cotationMultisite->getManager()); }
  2218. if ($this->getCompany() === null) { $this->setCompany($cotationMultisite->getCompany()); }
  2219. }
  2220. }
  2221. public function isAcdValid(): bool
  2222. {
  2223. if (!$this->getAcdFile()) {
  2224. return false;
  2225. }
  2226. $signDate = $this->getAcdSignDate();
  2227. if (!$signDate) {
  2228. // On prends arbitrairement la date de création de la cotation + 6 mois
  2229. $signDate = clone $this->getCreationDate();
  2230. $signDate->modify("+6 months");
  2231. $this->setAcdSignDate($signDate);
  2232. }
  2233. $expiredDate = clone $signDate;
  2234. // 10 mois moins 1 jour
  2235. $expiredDate->modify("+10 months");
  2236. $expiredDate->modify("-1 day");
  2237. return $expiredDate > new \DateTime('now');
  2238. }
  2239. public function getElecDesiredSuppliersToString()
  2240. {
  2241. $suppliers = [];
  2242. foreach ($this->getEDesiredSuppliers() as $supplier) {
  2243. $suppliers[] = $supplier->getName();
  2244. }
  2245. return implode(', ', $suppliers);
  2246. }
  2247. public function getGasDesiredSuppliersToString()
  2248. {
  2249. $suppliers = [];
  2250. foreach ($this->getGDesiredSuppliers() as $supplier) {
  2251. $suppliers[] = $supplier->getName();
  2252. }
  2253. return implode(', ', $suppliers);
  2254. }
  2255. public function getEAddress(): ?string
  2256. {
  2257. return $this->eAddress;
  2258. }
  2259. public function setEAddress(?string $eAddress): void
  2260. {
  2261. $this->eAddress = $eAddress;
  2262. }
  2263. public function getEAddress2(): ?string
  2264. {
  2265. return $this->eAddress2;
  2266. }
  2267. public function setEAddress2(?string $eAddress2): void
  2268. {
  2269. $this->eAddress2 = $eAddress2;
  2270. }
  2271. public function getEZipCode(): ?string
  2272. {
  2273. return $this->eZipCode;
  2274. }
  2275. public function setEZipCode(?string $eZipCode): void
  2276. {
  2277. $this->eZipCode = $eZipCode;
  2278. }
  2279. public function getECity(): ?string
  2280. {
  2281. return $this->eCity;
  2282. }
  2283. public function setECity(?string $eCity): void
  2284. {
  2285. $this->eCity = $eCity;
  2286. }
  2287. public function getGAddress(): ?string
  2288. {
  2289. return $this->gAddress;
  2290. }
  2291. public function setGAddress(?string $gAddress): void
  2292. {
  2293. $this->gAddress = $gAddress;
  2294. }
  2295. public function getGAddress2(): ?string
  2296. {
  2297. return $this->gAddress2;
  2298. }
  2299. public function setGAddress2(?string $gAddress2): void
  2300. {
  2301. $this->gAddress2 = $gAddress2;
  2302. }
  2303. public function getGZipCode(): ?string
  2304. {
  2305. return $this->gZipCode;
  2306. }
  2307. public function setGZipCode(?string $gZipCode): void
  2308. {
  2309. $this->gZipCode = $gZipCode;
  2310. }
  2311. public function getGCity(): ?string
  2312. {
  2313. return $this->gCity;
  2314. }
  2315. public function setGCity(?string $gCity): void
  2316. {
  2317. $this->gCity = $gCity;
  2318. }
  2319. public function getVariableTerm(): ?float
  2320. {
  2321. return $this->variableTerm;
  2322. }
  2323. public function setVariableTerm(?float $variableTerm): void
  2324. {
  2325. $this->variableTerm = $variableTerm;
  2326. }
  2327. public function getTicgn(): ?float
  2328. {
  2329. return $this->ticgn;
  2330. }
  2331. public function setTicgn(?float $ticgn): void
  2332. {
  2333. $this->ticgn = $ticgn;
  2334. }
  2335. }