src/Entity/Params.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ParamsRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassParamsRepository::class)]
  7. class Params
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  14.     private ?string $useTerms null;
  15.     #[ORM\Column]
  16.     private ?int $realId null;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getUseTerms(): ?string
  22.     {
  23.         return $this->useTerms;
  24.     }
  25.     public function setUseTerms(?string $useTerms): self
  26.     {
  27.         $this->useTerms $useTerms;
  28.         return $this;
  29.     }
  30.     public function getRealId(): ?int
  31.     {
  32.         return $this->realId;
  33.     }
  34.     public function setRealId(int $realId): self
  35.     {
  36.         $this->realId $realId;
  37.         return $this;
  38.     }
  39.     public function init(): void
  40.     {
  41.         $this->setUseTerms("vide");
  42.     }
  43. }