src/Entity/Indicator.php line 10
<?php
namespace App\Entity;
use App\Repository\IndicatorRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: IndicatorRepository::class)]
class Indicator
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255)]
private ?string $name = null;
#[ORM\Column(length: 50, nullable: true)]
private ?string $shortName = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $description = null;
#[ORM\Column(length: 255)]
private ?string $linkingSentence = null;
#[ORM\Column]
private ?bool $reverse = null;
#[ORM\Column(length: 10, nullable: true)]
private ?string $unit = null;
#[ORM\ManyToOne]
#[ORM\JoinColumn(nullable: false)]
private ?IndicatorType $indicatorType = null;
#[ORM\ManyToOne(inversedBy: 'indicators')]
#[ORM\JoinColumn(nullable: false)]
private ?Thematic $thematic = null;
private $active = false;
private $data = null;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getShortName(): ?string
{
return $this->shortName;
}
public function setShortName(?string $shortName): self
{
$this->shortName = $shortName;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getLinkingSentence(): ?string
{
return $this->linkingSentence;
}
public function setLinkingSentence(string $linkingSentence): self
{
$this->linkingSentence = $linkingSentence;
return $this;
}
public function isReverse(): ?bool
{
return $this->reverse;
}
public function setReverse(bool $reverse): self
{
$this->reverse = $reverse;
return $this;
}
public function getUnit(): ?string
{
return $this->unit;
}
public function setUnit(?string $unit): self
{
$this->unit = $unit;
return $this;
}
public function getIndicatorType(): ?IndicatorType
{
return $this->indicatorType;
}
public function setIndicatorType(?IndicatorType $indicatorType): self
{
$this->indicatorType = $indicatorType;
return $this;
}
public function getThematic(): ?Thematic
{
return $this->thematic;
}
public function setThematic(?Thematic $thematic): self
{
$this->thematic = $thematic;
return $this;
}
public function isActive(): ?bool
{
return $this->active;
}
public function setActive(?bool $active): self
{
$this->active = $active;
return $this;
}
public function hasData(): ?bool
{
return $this->data;
}
public function setData(?bool $data): self
{
$this->data = $data;
return $this;
}
}