src/Entity/System/Variable.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use App\Repository\SystemVariablesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Table(name'system_variables')]
  6. #[ORM\Entity(repositoryClassSystemVariablesRepository::class)]
  7. class Variable
  8. {
  9.     const VARIABLE_PROFILE_SENDER_START_DATE 'profile_sender_start_date';
  10.     const VARIABLE_OFFER_BAR_STRING 'offer_bar_string';
  11.     #[ORM\Id]
  12.     #[ORM\Column(name'id'type'integer')]
  13.     #[ORM\GeneratedValue(strategy'AUTO')]
  14.     protected int $id;
  15.     #[ORM\Column(name'name'type'string'length128)]
  16.     protected string $name;
  17.     #[ORM\Column(name'value'type'text'nullabletrue)]
  18.     protected ?string $value;
  19.     public function __construct(string $name, ?string $value)
  20.     {
  21.         $this->name $name;
  22.         $this->value $value;
  23.     }
  24.     public function getId(): int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getName(): string
  29.     {
  30.         return $this->name;
  31.     }
  32.     public function setName(string $name): void
  33.     {
  34.         $this->name $name;
  35.     }
  36.     public function getValue(): ?string
  37.     {
  38.         return $this->value;
  39.     }
  40.     public function setValue(?string $value): void
  41.     {
  42.         $this->value $value;
  43.     }
  44. }