<?php
namespace App\Entity;
use App\Entity\Enum\FinancialParameterEnum;
use App\Repository\FinancialParameterRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FinancialParameterRepository::class)
*/
class FinancialParameter
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private int $id;
/**
* @ORM\Column(type="date")
*/
private \DateTime $start;
/**
* @ORM\Column(type="date")
*/
private \DateTime $end;
/**
* @ORM\Column(type="string", length=10)
*/
private string $type;
/**
* @ORM\Column(type="float")
*/
private float $value;
public function getId(): ?int
{
return $this->id;
}
public function getStart(): ?\DateTimeInterface
{
return $this->start;
}
public function setStart(\DateTimeInterface $start): self
{
$this->start = $start;
return $this;
}
public function getEnd(): ?\DateTimeInterface
{
return $this->end;
}
public function setEnd(\DateTimeInterface $end): self
{
$this->end = $end;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function getTypeLabel(): ?string
{
return FinancialParameterEnum::getModelName($this->type);
}
public function setType(string $type): self
{
$this->type = $type;
return $this;
}
public function getValue(): ?float
{
return $this->value;
}
public function setValue(float $value): self
{
$this->value = $value;
return $this;
}
}