src/Entity/Parameter.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Repository\ParameterRepository;
  6. #[ORM\Entity(repositoryClassParameterRepository::class)]
  7. class Parameter
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length180uniquetrue)]
  14.     private ?string $name null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $value null;
  17.     #[ORM\Column]
  18.     private ?bool $active null;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getName(): ?string
  24.     {
  25.         return $this->name;
  26.     }
  27.     public function setName(string $name): self
  28.     {
  29.         $this->name $name;
  30.         return $this;
  31.     }
  32.     public function getValue(): ?string
  33.     {
  34.         return $this->value;
  35.     }
  36.     public function setValue(?string $value): self
  37.     {
  38.         $this->value $value;
  39.         return $this;
  40.     }
  41.     public function isActive(): ?bool
  42.     {
  43.         return $this->active;
  44.     }
  45.     public function setActive(bool $active): self
  46.     {
  47.         $this->active $active;
  48.         return $this;
  49.     }
  50. }