src/Entity/Indicator.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IndicatorRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassIndicatorRepository::class)]
  7. class Indicator
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $name null;
  15.     #[ORM\Column(length50nullabletrue)]
  16.     private ?string $shortName null;
  17.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  18.     private ?string $description null;
  19.     #[ORM\Column(length255)]
  20.     private ?string $linkingSentence null;
  21.     #[ORM\Column]
  22.     private ?bool $reverse null;
  23.     #[ORM\Column(length10nullabletrue)]
  24.     private ?string $unit null;
  25.     #[ORM\ManyToOne]
  26.     #[ORM\JoinColumn(nullablefalse)]
  27.     private ?IndicatorType $indicatorType null;
  28.     #[ORM\ManyToOne(inversedBy'indicators')]
  29.     #[ORM\JoinColumn(nullablefalse)]
  30.     private ?Thematic $thematic null;
  31.     private $active false;
  32.     private $data null;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getName(): ?string
  38.     {
  39.         return $this->name;
  40.     }
  41.     public function setName(string $name): self
  42.     {
  43.         $this->name $name;
  44.         return $this;
  45.     }
  46.     public function getShortName(): ?string
  47.     {
  48.         return $this->shortName;
  49.     }
  50.     public function setShortName(?string $shortName): self
  51.     {
  52.         $this->shortName $shortName;
  53.         return $this;
  54.     }
  55.     public function getDescription(): ?string
  56.     {
  57.         return $this->description;
  58.     }
  59.     public function setDescription(?string $description): self
  60.     {
  61.         $this->description $description;
  62.         return $this;
  63.     }
  64.     public function getLinkingSentence(): ?string
  65.     {
  66.         return $this->linkingSentence;
  67.     }
  68.     public function setLinkingSentence(string $linkingSentence): self
  69.     {
  70.         $this->linkingSentence $linkingSentence;
  71.         return $this;
  72.     }
  73.     public function isReverse(): ?bool
  74.     {
  75.         return $this->reverse;
  76.     }
  77.     public function setReverse(bool $reverse): self
  78.     {
  79.         $this->reverse $reverse;
  80.         return $this;
  81.     }
  82.     public function getUnit(): ?string
  83.     {
  84.         return $this->unit;
  85.     }
  86.     public function setUnit(?string $unit): self
  87.     {
  88.         $this->unit $unit;
  89.         return $this;
  90.     }
  91.     public function getIndicatorType(): ?IndicatorType
  92.     {
  93.         return $this->indicatorType;
  94.     }
  95.     public function setIndicatorType(?IndicatorType $indicatorType): self
  96.     {
  97.         $this->indicatorType $indicatorType;
  98.         return $this;
  99.     }
  100.     public function getThematic(): ?Thematic
  101.     {
  102.         return $this->thematic;
  103.     }
  104.     public function setThematic(?Thematic $thematic): self
  105.     {
  106.         $this->thematic $thematic;
  107.         return $this;
  108.     }
  109.     public function isActive(): ?bool
  110.     {
  111.         return $this->active;
  112.     }
  113.     public function setActive(?bool $active): self
  114.     {
  115.         $this->active $active;
  116.         return $this;
  117.     }
  118.     public function hasData(): ?bool
  119.     {
  120.         return $this->data;
  121.     }
  122.     public function setData(?bool $data): self
  123.     {
  124.         $this->data $data;
  125.         return $this;
  126.     }
  127. }