<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Timestampable\Traits\TimestampableEntity;
/**
* @ORM\Entity(repositoryClass="App\Repository\ReportCountryStatisticRepository")
* @ORM\Table(name="`report_country_statistic`")
*/
class ReportCountryStatistic
{
use TimestampableEntity;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private ?int $id = null;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Report", inversedBy="countryStatistics")
* @ORM\JoinColumn(name="report_id", referencedColumnName="id")
*/
private Report $report;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\ReportSnapshot", inversedBy="countryStatistics")
* @ORM\JoinColumn(name="report_snapshot_id", referencedColumnName="id")
*/
private ?ReportSnapshot $snapshot = null;
/**
* @ORM\Column(type="string")
*/
private ?string $code;
/**
* @ORM\Column(type="string")
*/
private ?string $name;
/**
* @ORM\Column(type="float")
*/
private ?float $kWh;
/**
* @ORM\Column(type="float")
*/
private ?float $tCO2;
public function getId(): ?int
{
return $this->id;
}
public function getReport(): Report
{
return $this->report;
}
public function setReport(Report $report): void
{
$this->report = $report;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(?string $code): void
{
$this->code = $code;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): void
{
$this->name = $name;
}
public function getKWh(): ?float
{
return $this->kWh;
}
public function setKWh(?float $kWh): void
{
$this->kWh = $kWh;
}
public function getTCO2(): ?float
{
return $this->tCO2;
}
public function setTCO2(?float $tCO2): void
{
$this->tCO2 = $tCO2;
}
public function getSnapshot(): ?ReportSnapshot
{
return $this->snapshot;
}
public function setSnapshot(?ReportSnapshot $snapshot): void
{
$this->snapshot = $snapshot;
}
}