src/Entity/Contract.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6. * Contract
  7. *
  8. * @ORM\Table(name="contract", uniqueConstraints={@ORM\UniqueConstraint(name="contract_id_uindex", columns={"id"})}, indexes={@ORM\Index(name="contract_situation_gas_elec_id_fk", columns={"gas_situation_id"}), @ORM\Index(name="contract_supplier_id_fk", columns={"supplier_id"}), @ORM\Index(name="contract_manager_id_fk", columns={"manager_id"}), @ORM\Index(name="contract_company_id_fk", columns={"company_id"}), @ORM\Index(name="contract_contract_state_id_fk", columns={"state_id"}), @ORM\Index(name="contract_situation_gas_elec_id_fk_2", columns={"electricity_situation_id"}), @ORM\Index(name="contract_user_id_fk", columns={"user_id"})})
  9. * @ORM\Entity(repositoryClass="App\Repository\ContractRepository")
  10. */
  11. class Contract
  12. {
  13. /**
  14. * @var int
  15. *
  16. * @ORM\Column(name="id", type="integer", nullable=false)
  17. * @ORM\Id
  18. * @ORM\GeneratedValue(strategy="IDENTITY")
  19. */
  20. private $id;
  21. /**
  22. * @var string|null
  23. *
  24. * @ORM\Column(name="name", type="string", length=255, nullable=true)
  25. */
  26. private $name;
  27. /**
  28. * @var string|null
  29. *
  30. * @ORM\Column(name="old_email", type="string", length=255, nullable=true)
  31. */
  32. private $oldEmail;
  33. /**
  34. * @var bool|null
  35. *
  36. * @ORM\Column(name="gas", type="boolean", nullable=true)
  37. */
  38. private $gas = false;
  39. /**
  40. * @var bool|null
  41. *
  42. * @ORM\Column(name="electricity", type="boolean", nullable=true)
  43. */
  44. private $electricity = false;
  45. /**
  46. * @var bool|null
  47. *
  48. * @ORM\Column(name="engie_pro", type="boolean", nullable=true)
  49. */
  50. private $engiePro = false;
  51. /**
  52. * @var bool|null
  53. *
  54. * @ORM\Column(name="telecom", type="boolean", nullable=true)
  55. */
  56. private $telecom = false;
  57. /**
  58. * @var bool|null
  59. *
  60. * @ORM\Column(name="photovoltaique", type="boolean", nullable=true)
  61. */
  62. private $photovoltaique = false;
  63. /**
  64. * @var \DateTime|null
  65. *
  66. * @ORM\Column(name="effective_date", type="date", nullable=true)
  67. */
  68. private $effectiveDate;
  69. /**
  70. * @var bool|null
  71. *
  72. * @ORM\Column(name="withdrawal_deadlines", type="boolean", nullable=true)
  73. */
  74. private $withdrawalDeadlines = false;
  75. /**
  76. * @var string|null
  77. *
  78. * @ORM\Column(name="offer_type", type="string", length=255, nullable=true)
  79. */
  80. private $offerType;
  81. /**
  82. * @var string|null
  83. *
  84. * @ORM\Column(name="address", type="string", length=255, nullable=true)
  85. */
  86. private $address;
  87. /**
  88. * @var string|null
  89. *
  90. * @ORM\Column(name="address_2", type="string", length=255, nullable=true)
  91. */
  92. private $address2;
  93. /**
  94. * @var string|null
  95. *
  96. * @ORM\Column(name="zip_code", type="string", length=255, nullable=true)
  97. */
  98. private $zipCode;
  99. /**
  100. * @var string|null
  101. *
  102. * @ORM\Column(name="city", type="string", length=255, nullable=true)
  103. */
  104. private $city;
  105. /**
  106. * @var string|null
  107. *
  108. * @ORM\Column(name="pdl_number", type="string", length=255, nullable=true)
  109. */
  110. private $pdlNumber;
  111. /**
  112. * @var string|null
  113. *
  114. * @ORM\Column(name="pce_number", type="string", length=255, nullable=true)
  115. */
  116. private $pceNumber;
  117. /**
  118. * @var string|null
  119. *
  120. * @ORM\Column(name="gas_meter_flow", type="string", length=255, nullable=true)
  121. */
  122. private $gasMeterFlow;
  123. /**
  124. * @var int|null
  125. *
  126. * @ORM\Column(name="forecast_consumption_range", type="integer", nullable=true)
  127. */
  128. private $forecastConsumptionRange = 0;
  129. /**
  130. * @var int|null
  131. *
  132. * @ORM\Column(name="gas_meter_reading_m3", type="integer", nullable=true)
  133. */
  134. private $gasMeterReadingM3 = 0;
  135. /**
  136. * @var string|null
  137. *
  138. * @ORM\Column(name="gas_consumption_profile", type="string", length=100, nullable=true)
  139. */
  140. private $gasConsumptionProfile;
  141. /**
  142. * @var int|null
  143. *
  144. * @ORM\Column(name="subscribed_kva_power", type="integer", nullable=true)
  145. */
  146. private $subscribedKvaPower = 0;
  147. /**
  148. * @var bool|null
  149. *
  150. * @ORM\Column(name="peak_hour_off_peak_hour", type="boolean", nullable=true)
  151. */
  152. private $peakHourOffPeakHour = false;
  153. /**
  154. * @var int|null
  155. *
  156. * @ORM\Column(name="electric_meter_reading_kwh", type="integer", nullable=true)
  157. */
  158. private $electricMeterReadingKwh = 0;
  159. /**
  160. * @var float|null
  161. *
  162. * @ORM\Column(name="cee", type="float", precision=10, scale=0, nullable=true)
  163. */
  164. private $cee = 0;
  165. /**
  166. * @var float|null
  167. *
  168. * @ORM\Column(name="capacity_factor", type="float", precision=10, scale=0, nullable=true)
  169. */
  170. private $capacityFactor = 0;
  171. /**
  172. * @var string|null
  173. *
  174. * @ORM\Column(name="rib_file", type="string", length=255, nullable=true)
  175. */
  176. private $ribFile;
  177. /**
  178. * @var string|null
  179. *
  180. * @ORM\Column(name="contract_file", type="string", length=255, nullable=true)
  181. */
  182. private $file;
  183. /**
  184. * @var \DateTime|null
  185. *
  186. * @ORM\Column(name="expiry_date", type="date", nullable=true)
  187. */
  188. private $expiryDate;
  189. /**
  190. * @var bool|null
  191. *
  192. * @ORM\Column(name="no_expiry_date", type="boolean", nullable=true)
  193. */
  194. private $noExpiryDate = false;
  195. /**
  196. * @var Supplier
  197. *
  198. * @ORM\ManyToOne(targetEntity="Supplier")
  199. * @ORM\JoinColumns({
  200. * @ORM\JoinColumn(name="supplier_id", referencedColumnName="id")
  201. * })
  202. */
  203. private $supplier;
  204. /**
  205. * @var Company
  206. *
  207. * @ORM\ManyToOne(targetEntity="Company", inversedBy="contracts")
  208. * @ORM\JoinColumns({
  209. * @ORM\JoinColumn(name="company_id", referencedColumnName="id")
  210. * })
  211. */
  212. private $company;
  213. /**
  214. * @var Manager
  215. *
  216. * @ORM\ManyToOne(targetEntity="Manager")
  217. * @ORM\JoinColumns({
  218. * @ORM\JoinColumn(name="manager_id", referencedColumnName="id")
  219. * })
  220. */
  221. private $manager;
  222. /**
  223. * @var SituationGasElec
  224. *
  225. * @ORM\ManyToOne(targetEntity="SituationGasElec")
  226. * @ORM\JoinColumns({
  227. * @ORM\JoinColumn(name="electricity_situation_id", referencedColumnName="id")
  228. * })
  229. */
  230. private $electricitySituation;
  231. /**
  232. * @var User
  233. *
  234. * @ORM\ManyToOne(targetEntity="User")
  235. * @ORM\JoinColumns({
  236. * @ORM\JoinColumn(name="user_id", referencedColumnName="id")
  237. * })
  238. */
  239. private $user;
  240. /**
  241. * @var ContractState
  242. *
  243. * @ORM\ManyToOne(targetEntity="ContractState")
  244. * @ORM\JoinColumns({
  245. * @ORM\JoinColumn(name="state_id", referencedColumnName="id")
  246. * })
  247. */
  248. private $state;
  249. /**
  250. * @var SituationGasElec
  251. *
  252. * @ORM\ManyToOne(targetEntity="SituationGasElec")
  253. * @ORM\JoinColumns({
  254. * @ORM\JoinColumn(name="gas_situation_id", referencedColumnName="id")
  255. * })
  256. */
  257. private $gasSituation;
  258. /**
  259. * @var OfferElec|null
  260. *
  261. * @ORM\OneToOne(targetEntity="OfferElec", inversedBy="contract")
  262. * @ORM\JoinColumns({
  263. * @ORM\JoinColumn(name="offer_elec_id", referencedColumnName="id")
  264. * })
  265. */
  266. private $offerElec;
  267. /**
  268. * @var OfferGaz|null
  269. *
  270. * @ORM\OneToOne(targetEntity="OfferGaz", inversedBy="contract")
  271. * @ORM\JoinColumns({
  272. * @ORM\JoinColumn(name="offer_gaz_id", referencedColumnName="id")
  273. * })
  274. */
  275. private $offerGaz;
  276. /**
  277. * @var float|null
  278. *
  279. * @ORM\Column(name="ca", type="float", precision=10, scale=0, nullable=true)
  280. */
  281. private $ca = 0;
  282. /**
  283. * @var float|null
  284. *
  285. * @ORM\Column(name="commission_rate", type="float", precision=10, scale=0, nullable=true)
  286. */
  287. private $commissionRate = 0;
  288. /**
  289. * @var float|null
  290. *
  291. * @ORM\Column(name="commission", type="float", precision=10, scale=0, nullable=true)
  292. */
  293. private $commission = 0;
  294. /**
  295. * @var \DateTime|null
  296. *
  297. * @ORM\Column(name="commission_date", type="date", nullable=true)
  298. */
  299. private $commissionDate;
  300. /**
  301. * @var string|null
  302. *
  303. * @ORM\Column(name="engie_pro_quantity_consumed", type="string", length=100, nullable=true)
  304. */
  305. private $engieProQuantityConsumed;
  306. /**
  307. * @var string|null
  308. *
  309. * @ORM\Column(name="engie_pro_e_segment", type="string", length=30, nullable=true)
  310. */
  311. private $engieProESegment;
  312. /**
  313. * @var string|null
  314. *
  315. * @ORM\Column(name="engie_pro_e_opt_energie_verte", type="string", length=30, nullable=true)
  316. */
  317. private $engieProEOptEnergieVerte;
  318. /**
  319. * @var string|null
  320. *
  321. * @ORM\Column(name="engie_pro_g_segment", type="string", length=30, nullable=true)
  322. */
  323. private $engieProGSegment;
  324. /**
  325. * @var string|null
  326. *
  327. * @ORM\Column(name="engie_pro_g_opt_energie_verte", type="string", length=30, nullable=true)
  328. */
  329. private $engieProGOptEnergieVerte;
  330. /**
  331. * @var string|null
  332. *
  333. * @ORM\Column(name="comment", type="string", nullable=true)
  334. */
  335. private $comment;
  336. /**
  337. * @var string|null
  338. *
  339. * @ORM\Column(name="telecom_offer", type="string", length=255, nullable=true)
  340. */
  341. private $telecomOffer;
  342. /**
  343. * @var string|null
  344. *
  345. * @ORM\Column(name="telecom_duration", type="string", length=5, nullable=true)
  346. */
  347. private $telecomDuration;
  348. /**
  349. * @var bool|null
  350. *
  351. * @ORM\Column(name="telecom_option_premium", type="boolean", nullable=true)
  352. */
  353. private $telecomOptionPremium;
  354. /**
  355. * @var string|null
  356. *
  357. * @ORM\Column(name="telecom_rio", type="string", length=30, nullable=true)
  358. */
  359. private $telecomRio;
  360. /**
  361. * @var string|null
  362. *
  363. * @ORM\Column(name="photov_building_type", type="string", length=255, nullable=true)
  364. */
  365. private $photovBuildingType;
  366. /**
  367. * @var string|null
  368. *
  369. * @ORM\Column(name="photov_building_year", type="string", length=20, nullable=true)
  370. */
  371. private $photovBuildingYear;
  372. /**
  373. * @var string|null
  374. *
  375. * @ORM\Column(name="photov_surface", type="string", length=20, nullable=true)
  376. */
  377. private $photovSurface;
  378. /**
  379. * @var string|null
  380. *
  381. * @ORM\Column(name="photov_exposition", type="string", length=20, nullable=true)
  382. */
  383. private $photovExposition;
  384. /**
  385. * @var string|null
  386. *
  387. * @ORM\Column(name="photov_main_material", type="string", length=255, nullable=true)
  388. */
  389. private $photovMainMaterial;
  390. /**
  391. * @var bool|null
  392. *
  393. * @ORM\Column(name="photov_recent_work", type="boolean", nullable=true)
  394. */
  395. private $photovRecentWork;
  396. /**
  397. * @var \DateTime|null
  398. *
  399. * @ORM\Column(name="creation_date", type="datetime", nullable=true)
  400. */
  401. private $creationDate;
  402. /**
  403. * @var \DateTime|null
  404. *
  405. * @ORM\Column(name="sign_date", type="datetime", nullable=true)
  406. */
  407. private $signDate;
  408. /**
  409. * @var string|null
  410. *
  411. * @ORM\Column(name="procedure_yousign_id", type="string", length=250, nullable=true)
  412. */
  413. private $procedureYousignId;
  414. /**
  415. * @var string|null
  416. *
  417. * @ORM\Column(name="docusign_envelope_id", type="string", length=255, nullable=true)
  418. */
  419. private $docusignEnvelopeId;
  420. /**
  421. * @var string|null
  422. *
  423. * @ORM\Column(name="other_file", type="string", length=255, nullable=true)
  424. */
  425. private $otherFile;
  426. /**
  427. * @var \DateTime|null
  428. *
  429. * @ORM\Column(name="other_file_sign_date", type="datetime", nullable=true)
  430. */
  431. private $otherFileSignDate;
  432. /**
  433. * @var string|null
  434. *
  435. * @ORM\Column(name="other_file_procedure_yousign_id", type="string", length=250, nullable=true)
  436. */
  437. private $otherFileProcedureYousignId;
  438. /**
  439. * @var string|null
  440. *
  441. * @ORM\Column(name="other_file_docusign_envelope_id", type="string", length=250, nullable=true)
  442. */
  443. private $otherFileDocusignEnvelopeId;
  444. /**
  445. * @var string|null
  446. *
  447. * @ORM\Column(name="sepa_iban", type="string", length=100, nullable=true)
  448. * @Assert\Iban(message="Le format IBAN est invalide.")
  449. */
  450. private $sepaIban;
  451. /**
  452. * @var string|null
  453. *
  454. * @ORM\Column(name="sepa_bic", type="string", length=50, nullable=true)
  455. * @Assert\Bic(message="Le format du BIC est invalide.")
  456. */
  457. private $sepaBic;
  458. /**
  459. * @var \DateTime|null
  460. *
  461. * @ORM\Column(name="resiliation_elec_email_sent_date", type="datetime", nullable=true)
  462. */
  463. private $resiliationElecEmailSendDate;
  464. /**
  465. * @var string|null
  466. *
  467. * @ORM\Column(name="resiliation_elec_email_content", type="text", nullable=true)
  468. */
  469. private $resiliationElecEmailContent;
  470. /**
  471. * @var \DateTime|null
  472. *
  473. * @ORM\Column(name="resiliation_gas_email_sent_date", type="datetime", nullable=true)
  474. */
  475. private $resiliationGasEmailSendDate;
  476. /**
  477. * @var string|null
  478. *
  479. * @ORM\Column(name="resiliation_gas_email_content", type="text", nullable=true)
  480. */
  481. private $resiliationGasEmailContent;
  482. public function __construct()
  483. {
  484. $this->creationDate = new \DateTime('now');
  485. }
  486. /**
  487. * @return int
  488. */
  489. public function getId()
  490. {
  491. return $this->id;
  492. }
  493. /**
  494. * @param int $id
  495. */
  496. public function setId($id)
  497. {
  498. $this->id = $id;
  499. }
  500. public function getName(): ?string
  501. {
  502. return $this->name;
  503. }
  504. public function setName(?string $name): void
  505. {
  506. $this->name = $name;
  507. }
  508. /**
  509. * @return string|null
  510. */
  511. public function getOldEmail()
  512. {
  513. return $this->oldEmail;
  514. }
  515. /**
  516. * @param string|null $oldEmail
  517. */
  518. public function setOldEmail($oldEmail)
  519. {
  520. $this->oldEmail = $oldEmail;
  521. }
  522. /**
  523. * @return bool|null
  524. */
  525. public function getGas()
  526. {
  527. return $this->gas;
  528. }
  529. /**
  530. * @param bool|null $gas
  531. */
  532. public function setGas($gas)
  533. {
  534. $this->gas = $gas;
  535. }
  536. /**
  537. * @return bool|null
  538. */
  539. public function getElectricity()
  540. {
  541. return $this->electricity;
  542. }
  543. /**
  544. * @param bool|null $electricity
  545. */
  546. public function setElectricity($electricity)
  547. {
  548. $this->electricity = $electricity;
  549. }
  550. /**
  551. * @return bool|null
  552. */
  553. public function getEngiePro(): ?bool
  554. {
  555. return $this->engiePro;
  556. }
  557. /**
  558. * @param bool|null $engiePro
  559. */
  560. public function setEngiePro(?bool $engiePro): void
  561. {
  562. $this->engiePro = $engiePro;
  563. }
  564. /**
  565. * @return bool|null
  566. */
  567. public function getTelecom(): ?bool
  568. {
  569. return $this->telecom;
  570. }
  571. /**
  572. * @param bool|null $telecom
  573. */
  574. public function setTelecom(?bool $telecom): void
  575. {
  576. $this->telecom = $telecom;
  577. }
  578. /**
  579. * @return bool|null
  580. */
  581. public function getPhotovoltaique(): ?bool
  582. {
  583. return $this->photovoltaique;
  584. }
  585. /**
  586. * @param bool|null $photovoltaique
  587. */
  588. public function setPhotovoltaique(?bool $photovoltaique): void
  589. {
  590. $this->photovoltaique = $photovoltaique;
  591. }
  592. /**
  593. * @return \DateTime|null
  594. */
  595. public function getEffectiveDate()
  596. {
  597. return $this->effectiveDate;
  598. }
  599. /**
  600. * @param \DateTime|null $effectiveDate
  601. */
  602. public function setEffectiveDate($effectiveDate)
  603. {
  604. $this->effectiveDate = $effectiveDate;
  605. }
  606. /**
  607. * @return bool|null
  608. */
  609. public function getWithdrawalDeadlines()
  610. {
  611. return $this->withdrawalDeadlines;
  612. }
  613. /**
  614. * @param bool|null $withdrawalDeadlines
  615. */
  616. public function setWithdrawalDeadlines($withdrawalDeadlines)
  617. {
  618. $this->withdrawalDeadlines = $withdrawalDeadlines;
  619. }
  620. public function getOfferType(): ?string
  621. {
  622. return $this->offerType;
  623. }
  624. public function setOfferType(?string $offerType): void
  625. {
  626. $this->offerType = $offerType;
  627. }
  628. /**
  629. * @return string|null
  630. */
  631. public function getAddress()
  632. {
  633. return $this->address;
  634. }
  635. /**
  636. * @param string|null $address
  637. */
  638. public function setAddress($address)
  639. {
  640. $this->address = $address;
  641. }
  642. /**
  643. * @return string|null
  644. */
  645. public function getAddress2()
  646. {
  647. return $this->address2;
  648. }
  649. /**
  650. * @param string|null $address2
  651. */
  652. public function setAddress2($address2)
  653. {
  654. $this->address2 = $address2;
  655. }
  656. /**
  657. * @return string|null
  658. */
  659. public function getZipCode()
  660. {
  661. return $this->zipCode;
  662. }
  663. /**
  664. * @param string|null $zipCode
  665. */
  666. public function setZipCode($zipCode)
  667. {
  668. $this->zipCode = $zipCode;
  669. }
  670. /**
  671. * @return string|null
  672. */
  673. public function getCity()
  674. {
  675. return $this->city;
  676. }
  677. /**
  678. * @param string|null $city
  679. */
  680. public function setCity($city)
  681. {
  682. $this->city = $city;
  683. }
  684. /**
  685. * @return string|null
  686. */
  687. public function getPdlNumber()
  688. {
  689. return $this->pdlNumber;
  690. }
  691. /**
  692. * @param string|null $pdlNumber
  693. */
  694. public function setPdlNumber($pdlNumber)
  695. {
  696. $this->pdlNumber = $pdlNumber;
  697. }
  698. /**
  699. * @return string|null
  700. */
  701. public function getPceNumber()
  702. {
  703. return $this->pceNumber;
  704. }
  705. /**
  706. * @param string|null $pceNumber
  707. */
  708. public function setPceNumber($pceNumber)
  709. {
  710. $this->pceNumber = $pceNumber;
  711. }
  712. /**
  713. * @return string|null
  714. */
  715. public function getGasMeterFlow()
  716. {
  717. return $this->gasMeterFlow;
  718. }
  719. /**
  720. * @param string|null $gasMeterFlow
  721. */
  722. public function setGasMeterFlow($gasMeterFlow)
  723. {
  724. $this->gasMeterFlow = $gasMeterFlow;
  725. }
  726. /**
  727. * @return int|null
  728. */
  729. public function getForecastConsumptionRange()
  730. {
  731. return $this->forecastConsumptionRange;
  732. }
  733. /**
  734. * @param int|null $forecastConsumptionRange
  735. */
  736. public function setForecastConsumptionRange($forecastConsumptionRange)
  737. {
  738. $this->forecastConsumptionRange = $forecastConsumptionRange;
  739. }
  740. /**
  741. * @return int|null
  742. */
  743. public function getGasMeterReadingM3()
  744. {
  745. return $this->gasMeterReadingM3;
  746. }
  747. /**
  748. * @param int|null $gasMeterReadingM3
  749. */
  750. public function setGasMeterReadingM3($gasMeterReadingM3)
  751. {
  752. $this->gasMeterReadingM3 = $gasMeterReadingM3;
  753. }
  754. public function getGasConsumptionProfile(): ?string
  755. {
  756. return $this->gasConsumptionProfile;
  757. }
  758. public function setGasConsumptionProfile(?string $gasConsumptionProfile): void
  759. {
  760. $this->gasConsumptionProfile = $gasConsumptionProfile;
  761. }
  762. /**
  763. * @return int|null
  764. */
  765. public function getSubscribedKvaPower()
  766. {
  767. return $this->subscribedKvaPower;
  768. }
  769. /**
  770. * @param int|null $subscribedKvaPower
  771. */
  772. public function setSubscribedKvaPower($subscribedKvaPower)
  773. {
  774. $this->subscribedKvaPower = $subscribedKvaPower;
  775. }
  776. /**
  777. * @return bool|null
  778. */
  779. public function getPeakHourOffPeakHour()
  780. {
  781. return $this->peakHourOffPeakHour;
  782. }
  783. /**
  784. * @param bool|null $peakHourOffPeakHour
  785. */
  786. public function setPeakHourOffPeakHour($peakHourOffPeakHour)
  787. {
  788. $this->peakHourOffPeakHour = $peakHourOffPeakHour;
  789. }
  790. /**
  791. * @return int|null
  792. */
  793. public function getElectricMeterReadingKwh()
  794. {
  795. return $this->electricMeterReadingKwh;
  796. }
  797. /**
  798. * @param int|null $electricMeterReadingKwh
  799. */
  800. public function setElectricMeterReadingKwh($electricMeterReadingKwh)
  801. {
  802. $this->electricMeterReadingKwh = $electricMeterReadingKwh;
  803. }
  804. /**
  805. * @return float|null
  806. */
  807. public function getCee()
  808. {
  809. return $this->cee;
  810. }
  811. /**
  812. * @param float|null $cee
  813. */
  814. public function setCee($cee)
  815. {
  816. $this->cee = $cee;
  817. }
  818. /**
  819. * @return float|null
  820. */
  821. public function getCapacityFactor()
  822. {
  823. return $this->capacityFactor;
  824. }
  825. /**
  826. * @param float|null $capacityFactor
  827. */
  828. public function setCapacityFactor($capacityFactor)
  829. {
  830. $this->capacityFactor = $capacityFactor;
  831. }
  832. /**
  833. * @return string|null
  834. */
  835. public function getRibFile()
  836. {
  837. return $this->ribFile;
  838. }
  839. /**
  840. * @param string|null $ribFile
  841. */
  842. public function setRibFile($ribFile)
  843. {
  844. $this->ribFile = $ribFile;
  845. }
  846. /**
  847. * @return string|null
  848. */
  849. public function getFile(): ?string
  850. {
  851. return $this->file;
  852. }
  853. /**
  854. * @param string|null $file
  855. */
  856. public function setFile(?string $file): void
  857. {
  858. $this->file = $file;
  859. }
  860. /**
  861. * @return \DateTime|null
  862. */
  863. public function getExpiryDate()
  864. {
  865. return $this->expiryDate;
  866. }
  867. /**
  868. * @param \DateTime|null $expiryDate
  869. */
  870. public function setExpiryDate($expiryDate)
  871. {
  872. $this->expiryDate = $expiryDate;
  873. }
  874. public function getNoExpiryDate(): ?bool
  875. {
  876. return $this->noExpiryDate;
  877. }
  878. public function setNoExpiryDate(?bool $noExpiryDate): void
  879. {
  880. $this->noExpiryDate = $noExpiryDate;
  881. }
  882. /**
  883. * @return Supplier
  884. */
  885. public function getSupplier()
  886. {
  887. return $this->supplier;
  888. }
  889. /**
  890. * @param Supplier $supplier
  891. */
  892. public function setSupplier($supplier)
  893. {
  894. $this->supplier = $supplier;
  895. }
  896. /**
  897. * @return Company
  898. */
  899. public function getCompany()
  900. {
  901. return $this->company;
  902. }
  903. /**
  904. * @param Company $company
  905. */
  906. public function setCompany($company)
  907. {
  908. $this->company = $company;
  909. }
  910. /**
  911. * @return Manager
  912. */
  913. public function getManager()
  914. {
  915. return $this->manager;
  916. }
  917. /**
  918. * @param Manager $manager
  919. */
  920. public function setManager($manager)
  921. {
  922. $this->manager = $manager;
  923. }
  924. /**
  925. * @return SituationGasElec
  926. */
  927. public function getElectricitySituation()
  928. {
  929. return $this->electricitySituation;
  930. }
  931. /**
  932. * @param SituationGasElec $electricitySituation
  933. */
  934. public function setElectricitySituation($electricitySituation)
  935. {
  936. $this->electricitySituation = $electricitySituation;
  937. }
  938. /**
  939. * @return User
  940. */
  941. public function getUser()
  942. {
  943. return $this->user;
  944. }
  945. /**
  946. * @param User $user
  947. */
  948. public function setUser($user)
  949. {
  950. $this->user = $user;
  951. }
  952. /**
  953. * @return ContractState
  954. */
  955. public function getState()
  956. {
  957. return $this->state;
  958. }
  959. /**
  960. * @param ContractState $state
  961. */
  962. public function setState($state)
  963. {
  964. $this->state = $state;
  965. }
  966. /**
  967. * @return SituationGasElec
  968. */
  969. public function getGasSituation()
  970. {
  971. return $this->gasSituation;
  972. }
  973. /**
  974. * @param SituationGasElec $gasSituation
  975. */
  976. public function setGasSituation($gasSituation)
  977. {
  978. $this->gasSituation = $gasSituation;
  979. }
  980. /**
  981. * @return OfferElec|null
  982. */
  983. public function getOfferElec(): ?OfferElec
  984. {
  985. return $this->offerElec;
  986. }
  987. /**
  988. * @param OfferElec|null $offerElec
  989. */
  990. public function setOfferElec(?OfferElec $offerElec): void
  991. {
  992. $this->offerElec = $offerElec;
  993. }
  994. /**
  995. * @return OfferGaz|null
  996. */
  997. public function getOfferGaz(): ?OfferGaz
  998. {
  999. return $this->offerGaz;
  1000. }
  1001. /**
  1002. * @param OfferGaz|null $offerGaz
  1003. */
  1004. public function setOfferGaz(?OfferGaz $offerGaz): void
  1005. {
  1006. $this->offerGaz = $offerGaz;
  1007. }
  1008. /**
  1009. * @return float|null
  1010. */
  1011. public function getCa()
  1012. {
  1013. return $this->ca;
  1014. }
  1015. /**
  1016. * @param float|null $ca
  1017. */
  1018. public function setCa($ca): void
  1019. {
  1020. $this->ca = $ca;
  1021. }
  1022. public function getCommissionRate(): float|int|null
  1023. {
  1024. return $this->commissionRate;
  1025. }
  1026. public function setCommissionRate(float|int|null $commissionRate): void
  1027. {
  1028. $this->commissionRate = $commissionRate;
  1029. }
  1030. public function getCommission(): float|int|null
  1031. {
  1032. return $this->commission;
  1033. }
  1034. public function setCommission(float|int|null $commission): void
  1035. {
  1036. $this->commission = $commission;
  1037. }
  1038. public function getCommissionDate(): ?\DateTime
  1039. {
  1040. return $this->commissionDate;
  1041. }
  1042. public function setCommissionDate(?\DateTime $commissionDate): void
  1043. {
  1044. $this->commissionDate = $commissionDate;
  1045. }
  1046. /**
  1047. * @return string|null
  1048. */
  1049. public function getEngieProQuantityConsumed(): ?string
  1050. {
  1051. return $this->engieProQuantityConsumed;
  1052. }
  1053. /**
  1054. * @param string|null $engieProQuantityConsumed
  1055. */
  1056. public function setEngieProQuantityConsumed(?string $engieProQuantityConsumed): void
  1057. {
  1058. $this->engieProQuantityConsumed = $engieProQuantityConsumed;
  1059. }
  1060. /**
  1061. * @return string|null
  1062. */
  1063. public function getEngieProESegment(): ?string
  1064. {
  1065. return $this->engieProESegment;
  1066. }
  1067. /**
  1068. * @param string|null $engieProESegment
  1069. */
  1070. public function setEngieProESegment(?string $engieProESegment): void
  1071. {
  1072. $this->engieProESegment = $engieProESegment;
  1073. }
  1074. /**
  1075. * @return string|null
  1076. */
  1077. public function getEngieProEOptEnergieVerte(): ?string
  1078. {
  1079. return $this->engieProEOptEnergieVerte;
  1080. }
  1081. /**
  1082. * @param string|null $engieProEOptEnergieVerte
  1083. */
  1084. public function setEngieProEOptEnergieVerte(?string $engieProEOptEnergieVerte): void
  1085. {
  1086. $this->engieProEOptEnergieVerte = $engieProEOptEnergieVerte;
  1087. }
  1088. /**
  1089. * @return string|null
  1090. */
  1091. public function getEngieProGSegment(): ?string
  1092. {
  1093. return $this->engieProGSegment;
  1094. }
  1095. /**
  1096. * @param string|null $engieProGSegment
  1097. */
  1098. public function setEngieProGSegment(?string $engieProGSegment): void
  1099. {
  1100. $this->engieProGSegment = $engieProGSegment;
  1101. }
  1102. /**
  1103. * @return string|null
  1104. */
  1105. public function getEngieProGOptEnergieVerte(): ?string
  1106. {
  1107. return $this->engieProGOptEnergieVerte;
  1108. }
  1109. /**
  1110. * @param string|null $engieProGOptEnergieVerte
  1111. */
  1112. public function setEngieProGOptEnergieVerte(?string $engieProGOptEnergieVerte): void
  1113. {
  1114. $this->engieProGOptEnergieVerte = $engieProGOptEnergieVerte;
  1115. }
  1116. /**
  1117. * @return string|null
  1118. */
  1119. public function getComment(): ?string
  1120. {
  1121. return $this->comment;
  1122. }
  1123. /**
  1124. * @param string|null $comment
  1125. */
  1126. public function setComment(?string $comment): void
  1127. {
  1128. $this->comment = $comment;
  1129. }
  1130. /**
  1131. * @return string|null
  1132. */
  1133. public function getTelecomOffer(): ?string
  1134. {
  1135. return $this->telecomOffer;
  1136. }
  1137. /**
  1138. * @param string|null $telecomOffer
  1139. */
  1140. public function setTelecomOffer(?string $telecomOffer): void
  1141. {
  1142. $this->telecomOffer = $telecomOffer;
  1143. }
  1144. /**
  1145. * @return string|null
  1146. */
  1147. public function getTelecomDuration(): ?string
  1148. {
  1149. return $this->telecomDuration;
  1150. }
  1151. /**
  1152. * @param string|null $telecomDuration
  1153. */
  1154. public function setTelecomDuration(?string $telecomDuration): void
  1155. {
  1156. $this->telecomDuration = $telecomDuration;
  1157. }
  1158. /**
  1159. * @return bool|null
  1160. */
  1161. public function getTelecomOptionPremium(): ?bool
  1162. {
  1163. return $this->telecomOptionPremium;
  1164. }
  1165. /**
  1166. * @param bool|null $telecomOptionPremium
  1167. */
  1168. public function setTelecomOptionPremium(?bool $telecomOptionPremium): void
  1169. {
  1170. $this->telecomOptionPremium = $telecomOptionPremium;
  1171. }
  1172. /**
  1173. * @return string|null
  1174. */
  1175. public function getTelecomRio(): ?string
  1176. {
  1177. return $this->telecomRio;
  1178. }
  1179. /**
  1180. * @param string|null $telecomRio
  1181. */
  1182. public function setTelecomRio(?string $telecomRio): void
  1183. {
  1184. $this->telecomRio = $telecomRio;
  1185. }
  1186. /**
  1187. * @return string|null
  1188. */
  1189. public function getPhotovBuildingType(): ?string
  1190. {
  1191. return $this->photovBuildingType;
  1192. }
  1193. /**
  1194. * @param string|null $photovBuildingType
  1195. */
  1196. public function setPhotovBuildingType(?string $photovBuildingType): void
  1197. {
  1198. $this->photovBuildingType = $photovBuildingType;
  1199. }
  1200. /**
  1201. * @return string|null
  1202. */
  1203. public function getPhotovBuildingYear(): ?string
  1204. {
  1205. return $this->photovBuildingYear;
  1206. }
  1207. /**
  1208. * @param string|null $photovBuildingYear
  1209. */
  1210. public function setPhotovBuildingYear(?string $photovBuildingYear): void
  1211. {
  1212. $this->photovBuildingYear = $photovBuildingYear;
  1213. }
  1214. /**
  1215. * @return string|null
  1216. */
  1217. public function getPhotovSurface(): ?string
  1218. {
  1219. return $this->photovSurface;
  1220. }
  1221. /**
  1222. * @param string|null $photovSurface
  1223. */
  1224. public function setPhotovSurface(?string $photovSurface): void
  1225. {
  1226. $this->photovSurface = $photovSurface;
  1227. }
  1228. /**
  1229. * @return string|null
  1230. */
  1231. public function getPhotovExposition(): ?string
  1232. {
  1233. return $this->photovExposition;
  1234. }
  1235. /**
  1236. * @param string|null $photovExposition
  1237. */
  1238. public function setPhotovExposition(?string $photovExposition): void
  1239. {
  1240. $this->photovExposition = $photovExposition;
  1241. }
  1242. /**
  1243. * @return string|null
  1244. */
  1245. public function getPhotovMainMaterial(): ?string
  1246. {
  1247. return $this->photovMainMaterial;
  1248. }
  1249. /**
  1250. * @param string|null $photovMainMaterial
  1251. */
  1252. public function setPhotovMainMaterial(?string $photovMainMaterial): void
  1253. {
  1254. $this->photovMainMaterial = $photovMainMaterial;
  1255. }
  1256. /**
  1257. * @return bool|null
  1258. */
  1259. public function getPhotovRecentWork(): ?bool
  1260. {
  1261. return $this->photovRecentWork;
  1262. }
  1263. /**
  1264. * @param bool|null $photovRecentWork
  1265. */
  1266. public function setPhotovRecentWork(?bool $photovRecentWork): void
  1267. {
  1268. $this->photovRecentWork = $photovRecentWork;
  1269. }
  1270. /**
  1271. * @return \DateTime|null
  1272. */
  1273. public function getCreationDate(): ?\DateTime
  1274. {
  1275. return $this->creationDate;
  1276. }
  1277. /**
  1278. * @param \DateTime|null $creationDate
  1279. */
  1280. public function setCreationDate(?\DateTime $creationDate): void
  1281. {
  1282. $this->creationDate = $creationDate;
  1283. }
  1284. /**
  1285. * @return \DateTime|null
  1286. */
  1287. public function getSignDate(): ?\DateTime
  1288. {
  1289. return $this->signDate;
  1290. }
  1291. /**
  1292. * @param \DateTime|null $signDate
  1293. */
  1294. public function setSignDate(?\DateTime $signDate): void
  1295. {
  1296. $this->signDate = $signDate;
  1297. }
  1298. /**
  1299. * @return string|null
  1300. */
  1301. public function getProcedureYousignId(): ?string
  1302. {
  1303. return $this->procedureYousignId;
  1304. }
  1305. /**
  1306. * @param string|null $procedureYousignId
  1307. */
  1308. public function setProcedureYousignId(?string $procedureYousignId): void
  1309. {
  1310. $this->procedureYousignId = $procedureYousignId;
  1311. }
  1312. public function getDocusignEnvelopeId(): ?string
  1313. {
  1314. return $this->docusignEnvelopeId;
  1315. }
  1316. public function setDocusignEnvelopeId(?string $docusignEnvelopeId): void
  1317. {
  1318. $this->docusignEnvelopeId = $docusignEnvelopeId;
  1319. }
  1320. /**
  1321. * @return string|null
  1322. */
  1323. public function getOtherFile(): ?string
  1324. {
  1325. return $this->otherFile;
  1326. }
  1327. /**
  1328. * @param string|null $otherFile
  1329. */
  1330. public function setOtherFile(?string $otherFile): void
  1331. {
  1332. $this->otherFile = $otherFile;
  1333. }
  1334. /**
  1335. * @return \DateTime|null
  1336. */
  1337. public function getOtherFileSignDate(): ?\DateTime
  1338. {
  1339. return $this->otherFileSignDate;
  1340. }
  1341. /**
  1342. * @param \DateTime|null $otherFileSignDate
  1343. */
  1344. public function setOtherFileSignDate(?\DateTime $otherFileSignDate): void
  1345. {
  1346. $this->otherFileSignDate = $otherFileSignDate;
  1347. }
  1348. /**
  1349. * @return string|null
  1350. */
  1351. public function getOtherFileProcedureYousignId(): ?string
  1352. {
  1353. return $this->otherFileProcedureYousignId;
  1354. }
  1355. /**
  1356. * @param string|null $otherFileProcedureYousignId
  1357. */
  1358. public function setOtherFileProcedureYousignId(?string $otherFileProcedureYousignId): void
  1359. {
  1360. $this->otherFileProcedureYousignId = $otherFileProcedureYousignId;
  1361. }
  1362. public function getOtherFileDocusignEnvelopeId(): ?string
  1363. {
  1364. return $this->otherFileDocusignEnvelopeId;
  1365. }
  1366. public function setOtherFileDocusignEnvelopeId(?string $otherFileDocusignEnvelopeId): void
  1367. {
  1368. $this->otherFileDocusignEnvelopeId = $otherFileDocusignEnvelopeId;
  1369. }
  1370. /**
  1371. * @return string|null
  1372. */
  1373. public function getSepaIban(): ?string
  1374. {
  1375. return $this->sepaIban;
  1376. }
  1377. /**
  1378. * @param string|null $sepaIban
  1379. */
  1380. public function setSepaIban(?string $sepaIban): void
  1381. {
  1382. $this->sepaIban = $sepaIban;
  1383. }
  1384. /**
  1385. * @return string|null
  1386. */
  1387. public function getSepaBic(): ?string
  1388. {
  1389. return $this->sepaBic;
  1390. }
  1391. /**
  1392. * @param string|null $sepaBic
  1393. */
  1394. public function setSepaBic(?string $sepaBic): void
  1395. {
  1396. $this->sepaBic = $sepaBic;
  1397. }
  1398. public function getResiliationElecEmailSendDate(): ?\DateTime
  1399. {
  1400. return $this->resiliationElecEmailSendDate;
  1401. }
  1402. public function setResiliationElecEmailSendDate(?\DateTime $resiliationElecEmailSendDate): void
  1403. {
  1404. $this->resiliationElecEmailSendDate = $resiliationElecEmailSendDate;
  1405. }
  1406. public function getResiliationElecEmailContent(): ?string
  1407. {
  1408. return $this->resiliationElecEmailContent;
  1409. }
  1410. public function setResiliationElecEmailContent(?string $resiliationElecEmailContent): void
  1411. {
  1412. $this->resiliationElecEmailContent = $resiliationElecEmailContent;
  1413. }
  1414. public function getResiliationGasEmailSendDate(): ?\DateTime
  1415. {
  1416. return $this->resiliationGasEmailSendDate;
  1417. }
  1418. public function setResiliationGasEmailSendDate(?\DateTime $resiliationGasEmailSendDate): void
  1419. {
  1420. $this->resiliationGasEmailSendDate = $resiliationGasEmailSendDate;
  1421. }
  1422. public function getResiliationGasEmailContent(): ?string
  1423. {
  1424. return $this->resiliationGasEmailContent;
  1425. }
  1426. public function setResiliationGasEmailContent(?string $resiliationGasEmailContent): void
  1427. {
  1428. $this->resiliationGasEmailContent = $resiliationGasEmailContent;
  1429. }
  1430. public function getTypes()
  1431. {
  1432. $types = [];
  1433. if ($this->getGas()) {
  1434. $types[] = "Gaz";
  1435. }
  1436. if ($this->getElectricity()) {
  1437. $types[] = "Elec";
  1438. }
  1439. if ($this->getEngiePro()) {
  1440. $types[] = "Offres sur Grilles";
  1441. }
  1442. if ($this->getTelecom()) {
  1443. $types[] = "Telecom";
  1444. }
  1445. if ($this->getPhotovoltaique()) {
  1446. $types[] = "Photovoltatique";
  1447. }
  1448. return $types;
  1449. }
  1450. public function getTypesString()
  1451. {
  1452. return implode(", ", $this->getTypes());
  1453. }
  1454. }