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.     public const AUTOMATIC_UPDATE_ACTIVE 'AUTOMATIC_UPDATE_ACTIVE';
  10.     public const REGULAR_COLLECTOR_ACTIVE 'REGULAR_COLLECTOR_ACTIVE';
  11.     #[ORM\Id]
  12.     #[ORM\GeneratedValue]
  13.     #[ORM\Column]
  14.     private ?int $id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $name null;
  17.     #[ORM\Column]
  18.     private ?bool $value null;
  19.     public function getId(): ?int
  20.     {
  21.         return $this->id;
  22.     }
  23.     public function getName(): ?string
  24.     {
  25.         return $this->name;
  26.     }
  27.     public function setName(string $Name): static
  28.     {
  29.         $this->name $Name;
  30.         return $this;
  31.     }
  32.     public function isValue(): ?bool
  33.     {
  34.         return $this->value;
  35.     }
  36.     public function setValue(bool $value): static
  37.     {
  38.         $this->value $value;
  39.         return $this;
  40.     }
  41. }