src/Entity/Settings.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SettingsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassSettingsRepository::class)]
  6. class Settings
  7. {
  8.     public const CRON_ACTIVE 'CRON_ACTIVE';
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $name null;
  15.     #[ORM\Column]
  16.     private ?bool $value null;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getName(): ?string
  22.     {
  23.         return $this->name;
  24.     }
  25.     public function setName(string $Name): static
  26.     {
  27.         $this->name $Name;
  28.         return $this;
  29.     }
  30.     public function isValue(): ?bool
  31.     {
  32.         return $this->value;
  33.     }
  34.     public function setValue(bool $value): static
  35.     {
  36.         $this->value $value;
  37.         return $this;
  38.     }
  39. }