src/Entity/Template.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TemplateRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassTemplateRepository::class)]
  6. class Template
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $titre null;
  14.     #[ORM\Column(length40)]
  15.     private ?string $type null;
  16.     #[ORM\Column(nullabletrue)]
  17.     private array $parametres = [];
  18.     #[ORM\Column]
  19.     private array $data = [];
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getTitre(): ?string
  25.     {
  26.         return $this->titre;
  27.     }
  28.     public function setTitre(string $titre): self
  29.     {
  30.         $this->titre $titre;
  31.         return $this;
  32.     }
  33.     public function getType(): ?string
  34.     {
  35.         return $this->type;
  36.     }
  37.     public function setType(string $type): self
  38.     {
  39.         $this->type $type;
  40.         return $this;
  41.     }
  42.     public function getParametres(): array
  43.     {
  44.         return $this->parametres;
  45.     }
  46.     public function setParametres(?array $parametres): self
  47.     {
  48.         $this->parametres $parametres;
  49.         return $this;
  50.     }
  51.     public function getData(): array
  52.     {
  53.         return $this->data;
  54.     }
  55.     public function setData(array $data): self
  56.     {
  57.         $this->data $data;
  58.         return $this;
  59.     }
  60. }