src/Entity/ReportCountryStatistic.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Timestampable\Traits\TimestampableEntity;
  5. /**
  6.  * @ORM\Entity(repositoryClass="App\Repository\ReportCountryStatisticRepository")
  7.  * @ORM\Table(name="`report_country_statistic`")
  8.  */
  9. class ReportCountryStatistic
  10. {
  11.     use TimestampableEntity;
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private ?int $id null;
  18.     /**
  19.      * @ORM\ManyToOne(targetEntity="App\Entity\Report", inversedBy="countryStatistics")
  20.      * @ORM\JoinColumn(name="report_id", referencedColumnName="id")
  21.      */
  22.     private Report $report;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity="App\Entity\ReportSnapshot", inversedBy="countryStatistics")
  25.      * @ORM\JoinColumn(name="report_snapshot_id", referencedColumnName="id")
  26.      */
  27.     private ?ReportSnapshot $snapshot null;
  28.     /**
  29.      * @ORM\Column(type="string")
  30.      */
  31.     private ?string $code;
  32.     /**
  33.      * @ORM\Column(type="string")
  34.      */
  35.     private ?string $name;
  36.     /**
  37.      * @ORM\Column(type="float")
  38.      */
  39.     private ?float $kWh;
  40.     /**
  41.      * @ORM\Column(type="float")
  42.      */
  43.     private ?float $tCO2;
  44.     public function getId(): ?int
  45.     {
  46.         return $this->id;
  47.     }
  48.     public function getReport(): Report
  49.     {
  50.         return $this->report;
  51.     }
  52.     public function setReport(Report $report): void
  53.     {
  54.         $this->report $report;
  55.     }
  56.     public function getCode(): ?string
  57.     {
  58.         return $this->code;
  59.     }
  60.     public function setCode(?string $code): void
  61.     {
  62.         $this->code $code;
  63.     }
  64.     public function getName(): ?string
  65.     {
  66.         return $this->name;
  67.     }
  68.     public function setName(?string $name): void
  69.     {
  70.         $this->name $name;
  71.     }
  72.     public function getKWh(): ?float
  73.     {
  74.         return $this->kWh;
  75.     }
  76.     public function setKWh(?float $kWh): void
  77.     {
  78.         $this->kWh $kWh;
  79.     }
  80.     public function getTCO2(): ?float
  81.     {
  82.         return $this->tCO2;
  83.     }
  84.     public function setTCO2(?float $tCO2): void
  85.     {
  86.         $this->tCO2 $tCO2;
  87.     }
  88.     public function getSnapshot(): ?ReportSnapshot
  89.     {
  90.         return $this->snapshot;
  91.     }
  92.     public function setSnapshot(?ReportSnapshot $snapshot): void
  93.     {
  94.         $this->snapshot $snapshot;
  95.     }
  96. }