src/Entity/Setting.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SettingRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  6. #[ORM\Entity(repositoryClassSettingRepository::class)]
  7. class Setting
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  11.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  12.     #[ORM\Column(type'guid'uniquetrue)]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $label;
  16.     #[ORM\Column(type'text')]
  17.     private $value;
  18.     public function getId(): ?string
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getLabel(): ?string
  23.     {
  24.         return $this->label;
  25.     }
  26.     public function setLabel(string $label): self
  27.     {
  28.         $this->label $label;
  29.         return $this;
  30.     }
  31.     public function getValue(): ?string
  32.     {
  33.         return $this->value;
  34.     }
  35.     public function setValue(string $value): self
  36.     {
  37.         $this->value $value;
  38.         return $this;
  39.     }
  40. }