<?php
namespace App\Entity;
use App\Repository\TemplateStyleRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: TemplateStyleRepository::class)]
#[ORM\Table(name: 'template_style')]
class TemplateStyle
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: 'string', length: 100)]
private ?string $label = null;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $css = null;
#[ORM\Column(name: 'css_compile', type: 'text', nullable: true)]
private ?string $cssCompile = null;
#[ORM\Column(type: 'integer', options: ['default' => 1])]
private int $etat = 1;
#[ORM\Column(name: 'par_defaut', type: 'boolean')]
private bool $parDefaut = false;
// Getters and Setters
public function getId(): ?int
{
return $this->id;
}
public function getLabel(): ?string
{
return $this->label;
}
public function setLabel(string $label): self
{
$this->label = $label;
return $this;
}
public function getCss(): ?string
{
return $this->css;
}
public function setCss(?string $css): self
{
$this->css = $css;
return $this;
}
public function getCssCompile(): ?string
{
return $this->cssCompile;
}
public function setCssCompile(?string $cssCompile): self
{
$this->cssCompile = $cssCompile;
return $this;
}
public function getEtat(): int
{
return $this->etat;
}
public function setEtat(int $etat): self
{
$this->etat = $etat;
return $this;
}
public function isParDefaut(): bool
{
return $this->parDefaut;
}
public function setParDefaut(bool $parDefaut): self
{
$this->parDefaut = $parDefaut;
return $this;
}
}