src/Entity/Brief.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BriefRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassBriefRepository::class)]
  6. class Brief
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $naam null;
  14.     #[ORM\Column(length255nullabletrue)]
  15.     private ?string $template null;
  16.     #[ORM\Column]
  17.     private ?bool $enabled null;
  18.     public function __toString()
  19.     {
  20.         return $this->naam;
  21.     }
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getNaam(): ?string
  27.     {
  28.         return $this->naam;
  29.     }
  30.     public function setNaam(string $naam): self
  31.     {
  32.         $this->naam $naam;
  33.         return $this;
  34.     }
  35.     public function getTemplate(): ?string
  36.     {
  37.         return $this->template;
  38.     }
  39.     public function setTemplate(?string $template): self
  40.     {
  41.         $this->template $template;
  42.         return $this;
  43.     }
  44.     public function isEnabled(): ?bool
  45.     {
  46.         return $this->enabled;
  47.     }
  48.     public function setEnabled(bool $enabled): self
  49.     {
  50.         $this->enabled $enabled;
  51.         return $this;
  52.     }
  53. }