src/Entity/VariableOption.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VariableOptionRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassVariableOptionRepository::class)]
  7. class VariableOption
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'variableOptions')]
  14.     #[ORM\JoinColumn(nullablefalseonDelete'CASCADE')]
  15.     private ?Variable $variable null;
  16.     #[ORM\Column(length50)]
  17.     private ?string $label null;
  18.     #[ORM\Column(length8options: ['default' => '000000'])]
  19.     private string $color_font '000000';
  20.     #[ORM\Column(length8options: ['default' => 'ffffff'])]
  21.     private string $color_back 'ffffff';
  22.     #[ORM\Column(typeTypes::BOOLEANoptions: ['default' => true])]
  23.     private bool $actif true;
  24.     #[ORM\Column(typeTypes::BOOLEANoptions: ['default' => false])]
  25.     private bool $isDefault false;
  26.     #[ORM\Column]
  27.     private ?int $ordre null;
  28.     public function getId(): ?int
  29.     {
  30.         return $this->id;
  31.     }
  32.     public function getVariable(): ?Variable
  33.     {
  34.         return $this->variable;
  35.     }
  36.     public function setVariable(?Variable $variable): static
  37.     {
  38.         $this->variable $variable;
  39.         return $this;
  40.     }
  41.     public function getLabel(): ?string
  42.     {
  43.         return $this->label;
  44.     }
  45.     public function setLabel(string $label): static
  46.     {
  47.         $this->label $label;
  48.         return $this;
  49.     }
  50.     public function getColorFont(): string
  51.     {
  52.         return $this->color_font;
  53.     }
  54.     public function setColorFont(string $color_font): static
  55.     {
  56.         $this->color_font $color_font;
  57.         return $this;
  58.     }
  59.     public function getColorBack(): string
  60.     {
  61.         return $this->color_back;
  62.     }
  63.     public function setColorBack(string $color_back): static
  64.     {
  65.         $this->color_back $color_back;
  66.         return $this;
  67.     }
  68.     public function getActif(): bool
  69.     {
  70.         return $this->actif;
  71.     }
  72.     public function setActif(bool $actif): static
  73.     {
  74.         $this->actif $actif;
  75.         return $this;
  76.     }
  77.     public function getOrdre(): ?int
  78.     {
  79.         return $this->ordre;
  80.     }
  81.     public function setOrdre(int $ordre): static
  82.     {
  83.         $this->ordre $ordre;
  84.         return $this;
  85.     }
  86.     public function getIsDefault(): bool
  87.     {
  88.         return $this->isDefault;
  89.     }
  90.     public function setIsDefault(bool $isDefault): static
  91.     {
  92.         $this->isDefault $isDefault;
  93.         return $this;
  94.     }
  95. }