src/Entity/Setting.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SettingRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=SettingRepository::class)
  7.  * @ORM\Table(name="settings")
  8.  */
  9. class Setting
  10. {
  11.     /**
  12.      * @ORM\Column(type="string", length=255)
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="NONE")
  15.      */
  16.     private string $id;
  17.     /**
  18.      * @ORM\Column(type="text", nullable=true)
  19.      */
  20.     private ?string $value null;
  21.     public function getId(): ?string
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function setId(string $id): self
  26.     {
  27.         $this->id $id;
  28.         return $this;
  29.     }
  30.     public function getValue(): ?string
  31.     {
  32.         return $this->value;
  33.     }
  34.     public function setValue(?string $value): self
  35.     {
  36.         $this->value $value;
  37.         return $this;
  38.     }
  39. }