<?php
namespace App\Entity;
use App\Repository\VariableConstantsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: VariableConstantsRepository::class)]
class VariableConstants
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column()]
private ?int $id = null;
#[ORM\Column(length: 15)]
private ?string $code = null;
#[ORM\Column(length: 255)]
private ?string $libelle = null;
#[ORM\Column(length: 255)]
private ?string $valeur = null;
#[ORM\Column]
private ?int $status = null;
#[ORM\ManyToOne(inversedBy: 'variableConstants')]
private ?Variables $variable = null;
public function getId(): ?int
{
return $this->id;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(string $code): self
{
$this->code = $code;
return $this;
}
public function getLibelle(): ?string
{
return $this->libelle;
}
public function setLibelle(string $libelle): self
{
$this->libelle = $libelle;
return $this;
}
public function getValeur(): ?string
{
return $this->valeur;
}
public function setValeur(string $valeur): self
{
$this->valeur = $valeur;
return $this;
}
public function getStatus(): ?int
{
return $this->status;
}
public function setStatus(int $status): self
{
$this->status = $status;
return $this;
}
public function getVariable(): ?Variables
{
return $this->variable;
}
public function setVariable(?Variables $variable): self
{
$this->variable = $variable;
return $this;
}
}