src/Entity/Setting.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SettingRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassSettingRepository::class)]
  7. class Setting
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column]
  14.     private ?int $const null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $value null;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getConst(): ?int
  22.     {
  23.         return $this->const;
  24.     }
  25.     public function setConst(int $const): static
  26.     {
  27.         $this->const $const;
  28.         return $this;
  29.     }
  30.     public function getValue(): ?string
  31.     {
  32.         return $this->value;
  33.     }
  34.     public function setValue(?string $value): static
  35.     {
  36.         $this->value $value;
  37.         return $this;
  38.     }
  39. }