src/Entity/Gauge/GaugeProperties.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gauge;
  3. use App\Entity\PriceDecision\Distributor;
  4. use App\Repository\Gauge\GaugePropertiesRepository;
  5. use App\Utils\Dataset;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * @ORM\Entity(repositoryClass=GaugePropertiesRepository::class)
  9. * @ORM\Table(name="gauge_properties")
  10. */
  11. class GaugeProperties
  12. {
  13. /**
  14. * @ORM\Id()
  15. * @ORM\GeneratedValue()
  16. * @ORM\Column(type="integer")
  17. */
  18. private int $id;
  19. /**
  20. * IČO value of customer
  21. * @var string|null
  22. * @ORM\Column(type="string", nullable=true)
  23. */
  24. private ?string $customerICO = null;
  25. /**
  26. * Name value of customer
  27. * @var string|null
  28. * @ORM\Column(type="string", nullable=true)
  29. */
  30. private ?string $customerName = null;
  31. /**
  32. * @ORM\Column(type="string", length=50, nullable=true)
  33. */
  34. private ?string $customerEmail = null;
  35. /**
  36. * @ORM\Column(type="string", length=50, nullable=true)
  37. */
  38. private ?string $customerBankAccount = null;
  39. /**
  40. * "EAN code" in case of electricity meter
  41. * "EIC code" in case of gasometer
  42. * "identification number" in case of heat meter
  43. * "VIN code" in case of other fuels
  44. * "evidence number" in case of fuel or thermometer or environment quality meter
  45. *
  46. * @var string|null
  47. * @ORM\Column(type="string", options={"comment":"EAN code in case electricity meter; EIC code in case gasometer; ident number in case heat meter; VIN code in case other fuels; evidence number in case of fuel or thermometer or environment quality meter "}, nullable=true)
  48. */
  49. private ?string $identifier = null;
  50. /**
  51. * @var string|null
  52. * @ORM\Column(type="string", name="ean_production", nullable=true)
  53. */
  54. private ?string $eanProduction = null;
  55. /**
  56. * "supply point number" in case of other electricity/gas/water/heat/fuel meter
  57. * @var string|null
  58. * @ORM\Column(type="string", nullable=true)
  59. */
  60. private ?string $supplyPointNumber = null;
  61. /**
  62. * @var string|null
  63. * @ORM\Column(type="string", nullable=true)
  64. */
  65. private ?string $meterNumber = null;
  66. /**
  67. * GID - Global Identification for Prague region
  68. * @var string|null
  69. * @ORM\Column(type="string", nullable=true)
  70. */
  71. private ?string $gid = null;
  72. /**
  73. * @var Gauge
  74. * @ORM\OneToOne(targetEntity="App\Entity\Gauge\Gauge", inversedBy="properties")
  75. * @ORM\JoinColumn(name="gauge_id", referencedColumnName="id", nullable=false)
  76. */
  77. private Gauge $gauge;
  78. /**
  79. * @var string|null
  80. * @ORM\Column(type="string", nullable=true)
  81. */
  82. private ?string $model = null;
  83. /**
  84. * @var string|null
  85. * @ORM\Column(type="string", nullable=true)
  86. */
  87. private ?string $location = null;
  88. /**
  89. * value from Dataset::CONSUMPTION_TYPE_...
  90. * @var int|null
  91. * @ORM\Column(type="smallint", nullable=true)
  92. */
  93. private ?int $consumptionType = null;
  94. /**
  95. * @var string|null
  96. * @ORM\Column(type="string", nullable=true)
  97. */
  98. private ?string $measurementType = null;
  99. /**
  100. * @var string|null
  101. * @ORM\Column(type="string", nullable=true)
  102. */
  103. private ?string $reservedPower = null;
  104. /**
  105. * @var string|null
  106. * @ORM\Column(type="string", nullable=true)
  107. */
  108. private ?string $reservedCapacity = null;
  109. /**
  110. * @var string|null
  111. * @ORM\Column(type="string", nullable=true)
  112. */
  113. private ?string $dailyReservedCapacity = null;
  114. /**
  115. * @var int|null
  116. * @ORM\Column(type="smallint", nullable=true)
  117. */
  118. private ?int $dailyReservedCapacityUnit;
  119. /**
  120. * @var string|null
  121. * @ORM\Column(type="text", nullable=true)
  122. */
  123. private ?string $note;
  124. /**
  125. * @var string|null
  126. * @ORM\Column(type="string", nullable=true)
  127. */
  128. private ?string $distributorLink = null;
  129. /**
  130. * values are defined in App\Utils\Period
  131. * @var int|null
  132. * @ORM\Column(type="smallint", nullable=true)
  133. */
  134. private ?int $invoicePeriod = null;
  135. /**
  136. * values are defined in App\Utils\Period
  137. * @var int|null
  138. * @ORM\Column(type="smallint", nullable=true)
  139. */
  140. private ?int $invoiceDepositPeriod = null;
  141. /**
  142. * @var bool
  143. * @ORM\Column(type="boolean")
  144. */
  145. private bool $involvedInPurchase = false;
  146. /**
  147. * @var bool
  148. * @ORM\Column(type="boolean")
  149. */
  150. private bool $centralDelivery = false;
  151. /**
  152. * @var Supplier|null
  153. * @ORM\ManyToOne(targetEntity="App\Entity\Gauge\Supplier", cascade={"persist"})
  154. * @ORM\JoinColumn(name="supplier_id", referencedColumnName="id", nullable=true)
  155. */
  156. private ?Supplier $supplier = null;
  157. /**
  158. * @var \DateTime|null
  159. *
  160. * @ORM\Column(type="datetime", nullable=true)
  161. */
  162. private ?\DateTime $supplierContractValidTo = null;
  163. /**
  164. * values are defined in App\Utils\Dataset::PAYMENT_RANGE_...
  165. * @var int|null
  166. * @ORM\Column(type="smallint", nullable=true)
  167. */
  168. private ?int $paymentsRange = null;
  169. /**
  170. * values are defined in App\Utils\Dataset::COSTS_IN_RESULTS_...
  171. * @var int|null
  172. * @ORM\Column(type="smallint", nullable=true)
  173. */
  174. private ?int $costsInResults = Dataset::COSTS_IN_RESULTS_ON;
  175. /**
  176. * @var bool|null
  177. * @ORM\Column(type="boolean", nullable=true)
  178. */
  179. private ?bool $forceLowTariff = false;
  180. /**
  181. * @var bool|null
  182. * @ORM\Column(type="boolean", nullable=true)
  183. */
  184. private ?bool $forceSpecialTariff = false;
  185. /**
  186. * @var int|null
  187. * @ORM\Column(type="smallint", nullable=true)
  188. */
  189. private ?int $invoiceIncomePeriod;
  190. /**
  191. * @var string|null
  192. * @ORM\Column(type="string", nullable=true)
  193. */
  194. private ?string $productionBuyer = null;
  195. /**
  196. * @var string|null
  197. * @ORM\Column(type="string", name="supply_point_usage", nullable=true)
  198. */
  199. private ?string $supplyPointUsage = null;
  200. /**
  201. * @var string|null
  202. * @ORM\Column(type="string", name="annual_consumption", nullable=true)
  203. */
  204. private ?string $annualConsumption = null;
  205. /**
  206. * @var string|null
  207. * @ORM\Column(type="string", name="gasometer_rate", nullable=true)
  208. */
  209. private ?string $gasometerRate = null;
  210. /**
  211. * @var string|null
  212. * @ORM\Column(type="string", nullable=true)
  213. */
  214. private ?string $tdd = null;
  215. /**
  216. * @var int|null
  217. * @ORM\Column(type="smallint", name="tdd_el", nullable=true)
  218. */
  219. private ?int $tddEl = null;
  220. /**
  221. * @var bool
  222. * @ORM\Column(type="boolean", options={"default" : 0})
  223. */
  224. private bool $overflowFVE = false;
  225. /**
  226. * values are defined in App\Utils\GaugeType::PRODUCTION_TYPE_...
  227. * @var int|null
  228. * @ORM\Column(type="smallint", nullable=true)
  229. */
  230. private ?int $productionType = null;
  231. /**
  232. * @var bool
  233. * @ORM\Column(type="boolean", options={"default" : 0})
  234. */
  235. private bool $electricitySharingConsumption = false;
  236. /**
  237. * @var bool
  238. * @ORM\Column(type="boolean", options={"default" : 0})
  239. */
  240. private bool $electricitySharingProduction = false;
  241. /**
  242. * GaugeProperties constructor.
  243. * @param Gauge $gauge
  244. */
  245. public function __construct(Gauge $gauge)
  246. {
  247. $this->gauge = $gauge;
  248. }
  249. /**
  250. * @return int
  251. */
  252. public function getId(): int
  253. {
  254. return $this->id;
  255. }
  256. /**
  257. * @return string|null
  258. */
  259. public function getCustomerICO(): ?string
  260. {
  261. return $this->customerICO;
  262. }
  263. /**
  264. * @param string|null $customerICO
  265. * @return self
  266. */
  267. public function setCustomerICO(?string $customerICO): self
  268. {
  269. $this->customerICO = $customerICO;
  270. return $this;
  271. }
  272. /**
  273. * @return string|null
  274. */
  275. public function getCustomerName(): ?string
  276. {
  277. return $this->customerName;
  278. }
  279. /**
  280. * @param string|null $customerName
  281. * @return self
  282. */
  283. public function setCustomerName(?string $customerName): self
  284. {
  285. $this->customerName = $customerName;
  286. return $this;
  287. }
  288. public function getCustomerEmail(): ?string
  289. {
  290. return $this->customerEmail;
  291. }
  292. public function setCustomerEmail(?string $customerEmail): self
  293. {
  294. $this->customerEmail = $customerEmail;
  295. return $this;
  296. }
  297. public function getCustomerBankAccount(): ?string
  298. {
  299. return $this->customerBankAccount;
  300. }
  301. public function setCustomerBankAccount(?string $customerBankAccount): self
  302. {
  303. $this->customerBankAccount = $customerBankAccount;
  304. return $this;
  305. }
  306. /**
  307. * @return string|null
  308. */
  309. public function getIdentifier(): ?string
  310. {
  311. return $this->identifier;
  312. }
  313. /**
  314. * @param string|null $identifier
  315. * @return self
  316. */
  317. public function setIdentifier(?string $identifier): self
  318. {
  319. $this->identifier = $identifier;
  320. return $this;
  321. }
  322. /**
  323. * @return string|null
  324. */
  325. public function getEanProduction(): ?string
  326. {
  327. if ($this->eanProduction === null && $this->gauge->getParent() !== null) {
  328. return $this->gauge->getParent()->getProperties()->getEanProduction();
  329. }
  330. return $this->eanProduction;
  331. }
  332. /**
  333. * @param string|null $eanProduction
  334. * @return self
  335. */
  336. public function setEanProduction(?string $eanProduction): self
  337. {
  338. $this->eanProduction = $eanProduction;
  339. return $this;
  340. }
  341. /**
  342. * @return string|null
  343. */
  344. public function getSupplyPointNumber(): ?string
  345. {
  346. return $this->supplyPointNumber;
  347. }
  348. /**
  349. * @param string|null $supplyPointNumber
  350. * @return self
  351. */
  352. public function setSupplyPointNumber(?string $supplyPointNumber): self
  353. {
  354. $this->supplyPointNumber = $supplyPointNumber;
  355. return $this;
  356. }
  357. /**
  358. * @return string|null
  359. */
  360. public function getMeterNumber(): ?string
  361. {
  362. return $this->meterNumber;
  363. }
  364. /**
  365. * @param string|null $meterNumber
  366. * @return self
  367. */
  368. public function setMeterNumber(?string $meterNumber): self
  369. {
  370. $this->meterNumber = $meterNumber;
  371. return $this;
  372. }
  373. public function getGid(): ?string
  374. {
  375. return $this->gid;
  376. }
  377. public function setGid(?string $gid): self
  378. {
  379. $this->gid = $gid;
  380. return $this;
  381. }
  382. /**
  383. * Returns gauge GID if set, otherwise building GID, otherwise null.
  384. */
  385. public function getEffectiveGid(): ?string
  386. {
  387. if ($this->gid !== null) {
  388. return $this->gid;
  389. }
  390. return $this->gauge->getBuilding()->getGid();
  391. }
  392. /**
  393. * @return Gauge
  394. */
  395. public function getGauge(): Gauge
  396. {
  397. return $this->gauge;
  398. }
  399. /**
  400. * @param Gauge $gauge
  401. * @return self
  402. */
  403. public function setGauge(Gauge $gauge): self
  404. {
  405. $this->gauge = $gauge;
  406. return $this;
  407. }
  408. /**
  409. * @return string|null
  410. */
  411. public function getModel(): ?string
  412. {
  413. return $this->model;
  414. }
  415. /**
  416. * @param string|null $model
  417. * @return self
  418. */
  419. public function setModel(?string $model): self
  420. {
  421. $this->model = $model;
  422. return $this;
  423. }
  424. /**
  425. * @return string|null
  426. */
  427. public function getLocation(): ?string
  428. {
  429. return $this->location;
  430. }
  431. /**
  432. * @param string|null $location
  433. * @return self
  434. */
  435. public function setLocation(?string $location): self
  436. {
  437. $this->location = $location;
  438. return $this;
  439. }
  440. /**
  441. * @return int|null
  442. */
  443. public function getConsumptionType(): ?int
  444. {
  445. return $this->consumptionType;
  446. }
  447. /**
  448. * @param int|null $consumptionType
  449. * @return self
  450. */
  451. public function setConsumptionType(?int $consumptionType): self
  452. {
  453. $this->consumptionType = $consumptionType;
  454. return $this;
  455. }
  456. /**
  457. * @return string|null
  458. */
  459. public function getMeasurementType(): ?string
  460. {
  461. return $this->measurementType;
  462. }
  463. /**
  464. * @param string|null $measurementType
  465. * @return self
  466. */
  467. public function setMeasurementType(?string $measurementType): self
  468. {
  469. $this->measurementType = $measurementType;
  470. return $this;
  471. }
  472. /**
  473. * @return string|null
  474. */
  475. public function getReservedPower(): ?string
  476. {
  477. return $this->reservedPower;
  478. }
  479. /**
  480. * @param string|null $reservedPower
  481. * @return self
  482. */
  483. public function setReservedPower(?string $reservedPower): self
  484. {
  485. $this->reservedPower = $reservedPower;
  486. return $this;
  487. }
  488. /**
  489. * @return string|null
  490. */
  491. public function getReservedCapacity(): ?string
  492. {
  493. return $this->reservedCapacity;
  494. }
  495. /**
  496. * @param string|null $reservedCapacity
  497. * @return self
  498. */
  499. public function setReservedCapacity(?string $reservedCapacity): self
  500. {
  501. $this->reservedCapacity = $reservedCapacity;
  502. return $this;
  503. }
  504. /**
  505. * @return string|null
  506. */
  507. public function getDailyReservedCapacity(): ?string
  508. {
  509. return $this->dailyReservedCapacity;
  510. }
  511. /**
  512. * @param string|null $dailyReservedCapacity
  513. * @return self
  514. */
  515. public function setDailyReservedCapacity(?string $dailyReservedCapacity): self
  516. {
  517. $this->dailyReservedCapacity = $dailyReservedCapacity;
  518. return $this;
  519. }
  520. /**
  521. * @return int|null
  522. */
  523. public function getDailyReservedCapacityUnit(): ?int
  524. {
  525. return $this->dailyReservedCapacityUnit;
  526. }
  527. /**
  528. * @param int|null $dailyReservedCapacityUnit
  529. * @return self
  530. */
  531. public function setDailyReservedCapacityUnit(?int $dailyReservedCapacityUnit): self
  532. {
  533. $this->dailyReservedCapacityUnit = $dailyReservedCapacityUnit;
  534. return $this;
  535. }
  536. /**
  537. * @return string|null
  538. */
  539. public function getNote(): ?string
  540. {
  541. return $this->note;
  542. }
  543. /**
  544. * @param string|null $note
  545. * @return self
  546. */
  547. public function setNote(?string $note): self
  548. {
  549. $this->note = $note;
  550. return $this;
  551. }
  552. /**
  553. * @return string|null
  554. */
  555. public function getDistributorLink(): ?string
  556. {
  557. return $this->distributorLink;
  558. }
  559. /**
  560. * @param string|null $distributorLink
  561. * @return self
  562. */
  563. public function setDistributorLink(?string $distributorLink): self
  564. {
  565. $this->distributorLink = $distributorLink;
  566. return $this;
  567. }
  568. /**
  569. * @return int|null
  570. */
  571. public function getInvoicePeriod(): ?int
  572. {
  573. return $this->invoicePeriod;
  574. }
  575. /**
  576. * @param int|null $invoicePeriod
  577. * @return self
  578. */
  579. public function setInvoicePeriod(?int $invoicePeriod): self
  580. {
  581. $this->invoicePeriod = $invoicePeriod;
  582. return $this;
  583. }
  584. /**
  585. * @return int|null
  586. */
  587. public function getInvoiceDepositPeriod(): ?int
  588. {
  589. return $this->invoiceDepositPeriod;
  590. }
  591. /**
  592. * @param int|null $invoiceDepositPeriod
  593. * @return self
  594. */
  595. public function setInvoiceDepositPeriod(?int $invoiceDepositPeriod): self
  596. {
  597. $this->invoiceDepositPeriod = $invoiceDepositPeriod;
  598. return $this;
  599. }
  600. /**
  601. * @return bool
  602. */
  603. public function isInvolvedInPurchase(): bool
  604. {
  605. return $this->involvedInPurchase;
  606. }
  607. /**
  608. * @param bool $involvedInPurchase
  609. * @return self
  610. */
  611. public function setInvolvedInPurchase(bool $involvedInPurchase): self
  612. {
  613. $this->involvedInPurchase = $involvedInPurchase;
  614. return $this;
  615. }
  616. /**
  617. * @return bool
  618. */
  619. public function isCentralDelivery(): bool
  620. {
  621. return $this->centralDelivery;
  622. }
  623. /**
  624. * @param bool $centralDelivery
  625. * @return self
  626. */
  627. public function setCentralDelivery(bool $centralDelivery): self
  628. {
  629. $this->centralDelivery = $centralDelivery;
  630. return $this;
  631. }
  632. /**
  633. * @return Supplier|null
  634. */
  635. public function getSupplier(): ?Supplier
  636. {
  637. return $this->supplier;
  638. }
  639. /**
  640. * @param Supplier|null $supplier
  641. * @return $this
  642. */
  643. public function setSupplier(?Supplier $supplier): GaugeProperties
  644. {
  645. $this->supplier = $supplier;
  646. return $this;
  647. }
  648. /**
  649. * @return \DateTime|null
  650. */
  651. public function getSupplierContractValidTo(): ?\DateTime
  652. {
  653. return $this->supplierContractValidTo;
  654. }
  655. /**
  656. * @param \DateTime|null $supplierContractValidTo
  657. * @return self
  658. */
  659. public function setSupplierContractValidTo(?\DateTime $supplierContractValidTo): self
  660. {
  661. $this->supplierContractValidTo = $supplierContractValidTo;
  662. return $this;
  663. }
  664. /**
  665. * @return int|null
  666. */
  667. public function getPaymentsRange(): ?int
  668. {
  669. return $this->paymentsRange;
  670. }
  671. /**
  672. * @param int|null $paymentsRange
  673. * @return self
  674. */
  675. public function setPaymentsRange(?int $paymentsRange): self
  676. {
  677. $this->paymentsRange = $paymentsRange;
  678. return $this;
  679. }
  680. /**
  681. * @return int|null
  682. */
  683. public function getCostsInResults(): ?int
  684. {
  685. return $this->costsInResults;
  686. }
  687. /**
  688. * @param int|null $costsInResults
  689. * @return self
  690. */
  691. public function setCostsInResults(?int $costsInResults): self
  692. {
  693. $this->costsInResults = $costsInResults;
  694. return $this;
  695. }
  696. /**
  697. * @return bool|null
  698. */
  699. public function getForceLowTariff(): ?bool
  700. {
  701. return $this->forceLowTariff;
  702. }
  703. /**
  704. * @param bool|null $forceLowTariff
  705. * @return GaugeProperties
  706. */
  707. public function setForceLowTariff(?bool $forceLowTariff): GaugeProperties
  708. {
  709. $this->forceLowTariff = $forceLowTariff;
  710. return $this;
  711. }
  712. /**
  713. * @return bool|null
  714. */
  715. public function getForceSpecialTariff(): ?bool
  716. {
  717. return $this->forceSpecialTariff;
  718. }
  719. /**
  720. * @param bool|null $forceSpecialTariff
  721. * @return GaugeProperties
  722. */
  723. public function setForceSpecialTariff(?bool $forceSpecialTariff): GaugeProperties
  724. {
  725. $this->forceSpecialTariff = $forceSpecialTariff;
  726. return $this;
  727. }
  728. public function setElectricityDistributor(?Distributor $elDistributor): GaugeProperties
  729. {
  730. $this->gauge->setElectricityDistributor($elDistributor);
  731. return $this;
  732. }
  733. public function getElectricityDistributor(): ?Distributor
  734. {
  735. return $this->gauge->getElectricityDistributor();
  736. }
  737. /**
  738. * @return int|null
  739. */
  740. public function getInvoiceIncomePeriod(): ?int
  741. {
  742. return $this->invoiceIncomePeriod;
  743. }
  744. public function setInvoiceIncomePeriod(?int $invoiceIncomePeriod): GaugeProperties
  745. {
  746. $this->invoiceIncomePeriod = $invoiceIncomePeriod;
  747. return $this;
  748. }
  749. public function setProductionBuyer(?string $productionBuyer): GaugeProperties
  750. {
  751. $this->productionBuyer = $productionBuyer;
  752. return $this;
  753. }
  754. /**
  755. * @return string|null
  756. */
  757. public function getProductionBuyer(): ?string
  758. {
  759. return $this->productionBuyer;
  760. }
  761. /**
  762. * @return string|null
  763. */
  764. public function getSupplyPointUsage(): ?string
  765. {
  766. return $this->supplyPointUsage;
  767. }
  768. /**
  769. * @param string|null $supplyPointUsage
  770. * @return GaugeProperties
  771. */
  772. public function setSupplyPointUsage(?string $supplyPointUsage): GaugeProperties
  773. {
  774. $this->supplyPointUsage = $supplyPointUsage;
  775. return $this;
  776. }
  777. /**
  778. * @return string|null
  779. */
  780. public function getAnnualConsumption(): ?string
  781. {
  782. return $this->annualConsumption;
  783. }
  784. /**
  785. * @param string|null $annualConsumption
  786. * @return GaugeProperties
  787. */
  788. public function setAnnualConsumption(?string $annualConsumption): GaugeProperties
  789. {
  790. $this->annualConsumption = $annualConsumption;
  791. return $this;
  792. }
  793. /**
  794. * @return string|null
  795. */
  796. public function getGasometerRate(): ?string
  797. {
  798. return $this->gasometerRate;
  799. }
  800. /**
  801. * @param string|null $gasometerRate
  802. * @return GaugeProperties
  803. */
  804. public function setGasometerRate(?string $gasometerRate): GaugeProperties
  805. {
  806. $this->gasometerRate = $gasometerRate;
  807. return $this;
  808. }
  809. /**
  810. * @return string|null
  811. */
  812. public function getTdd(): ?string
  813. {
  814. if (!$this->gauge->isMain() && $this->gauge->getParent() !== null) {
  815. return $this->gauge->getParent()->getProperties()->getTdd();
  816. }
  817. return $this->tdd;
  818. }
  819. /**
  820. * @param string|null $tdd
  821. * @return GaugeProperties
  822. */
  823. public function setTdd(?string $tdd): GaugeProperties
  824. {
  825. $this->tdd = $tdd;
  826. return $this;
  827. }
  828. /**
  829. * @return int|null
  830. */
  831. public function getTddEl(): ?int
  832. {
  833. if (!$this->gauge->isMain() && $this->gauge->getParent() !== null) {
  834. return $this->gauge->getParent()->getProperties()->getTddEl();
  835. }
  836. return $this->tddEl;
  837. }
  838. /**
  839. * @param int|null $tddEl
  840. * @return GaugeProperties
  841. */
  842. public function setTddEl(?int $tddEl): GaugeProperties
  843. {
  844. $this->tddEl = $tddEl;
  845. return $this;
  846. }
  847. public function isOverflowFVE(): bool
  848. {
  849. return $this->overflowFVE;
  850. }
  851. public function setOverflowFVE(bool $overflowFVE): GaugeProperties
  852. {
  853. $this->overflowFVE = $overflowFVE;
  854. return $this;
  855. }
  856. public function getProductionType(): ?int
  857. {
  858. return $this->productionType;
  859. }
  860. public function setProductionType(?int $productionType): GaugeProperties
  861. {
  862. $this->productionType = $productionType;
  863. return $this;
  864. }
  865. public function isElectricitySharingConsumption(): bool
  866. {
  867. return $this->electricitySharingConsumption;
  868. }
  869. public function setElectricitySharingConsumption(bool $electricitySharingConsumption): void
  870. {
  871. $this->electricitySharingConsumption = $electricitySharingConsumption;
  872. }
  873. public function isElectricitySharingProduction(): bool
  874. {
  875. return $this->electricitySharingProduction;
  876. }
  877. public function setElectricitySharingProduction(bool $electricitySharingProduction): void
  878. {
  879. $this->electricitySharingProduction = $electricitySharingProduction;
  880. }
  881. }