src/Entity/TemplateStyle.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TemplateStyleRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClass: TemplateStyleRepository::class)]
  6. #[ORM\Table(name: 'template_style')]
  7. class TemplateStyle
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id = null;
  13.     #[ORM\Column(type: 'string', length: 100)]
  14.     private ?string $label = null;
  15.     #[ORM\Column(type: 'text', nullable: true)]
  16.     private ?string $css = null;
  17.     #[ORM\Column(name: 'css_compile', type: 'text', nullable: true)]
  18.     private ?string $cssCompile = null;
  19.     #[ORM\Column(type: 'integer', options: ['default' => 1])]
  20.     private int $etat = 1;
  21.     #[ORM\Column(name: 'par_defaut', type: 'boolean')]
  22.     private bool $parDefaut = false;
  23.     // Getters and Setters
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getLabel(): ?string
  29.     {
  30.         return $this->label;
  31.     }
  32.     public function setLabel(string $label): self
  33.     {
  34.         $this->label = $label;
  35.         return $this;
  36.     }
  37.     public function getCss(): ?string
  38.     {
  39.         return $this->css;
  40.     }
  41.     public function setCss(?string $css): self
  42.     {
  43.         $this->css = $css;
  44.         return $this;
  45.     }
  46.     public function getCssCompile(): ?string
  47.     {
  48.         return $this->cssCompile;
  49.     }
  50.     public function setCssCompile(?string $cssCompile): self
  51.     {
  52.         $this->cssCompile = $cssCompile;
  53.         return $this;
  54.     }
  55.     public function getEtat(): int
  56.     {
  57.         return $this->etat;
  58.     }
  59.     public function setEtat(int $etat): self
  60.     {
  61.         $this->etat = $etat;
  62.         return $this;
  63.     }
  64.     public function isParDefaut(): bool
  65.     {
  66.         return $this->parDefaut;
  67.     }
  68.     public function setParDefaut(bool $parDefaut): self
  69.     {
  70.         $this->parDefaut = $parDefaut;
  71.         return $this;
  72.     }
  73. }