<?php
namespace App\Entity\System;
use App\Repository\SystemVariablesRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Table(name: 'system_variables')]
#[ORM\Entity(repositoryClass: SystemVariablesRepository::class)]
class Variable
{
const VARIABLE_PROFILE_SENDER_START_DATE = 'profile_sender_start_date';
const VARIABLE_OFFER_BAR_STRING = 'offer_bar_string';
#[ORM\Id]
#[ORM\Column(name: 'id', type: 'integer')]
#[ORM\GeneratedValue(strategy: 'AUTO')]
protected int $id;
#[ORM\Column(name: 'name', type: 'string', length: 128)]
protected string $name;
#[ORM\Column(name: 'value', type: 'text', nullable: true)]
protected ?string $value;
public function __construct(string $name, ?string $value)
{
$this->name = $name;
$this->value = $value;
}
public function getId(): int
{
return $this->id;
}
public function getName(): string
{
return $this->name;
}
public function setName(string $name): void
{
$this->name = $name;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): void
{
$this->value = $value;
}
}