src/Entity/Program.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProgramRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassProgramRepository::class)]
  7. class Program
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $horaire null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $content null;
  17.     #[ORM\Column]
  18.     private ?int $orderBy null;
  19.     #[ORM\Column]
  20.     private ?bool $isEnabled true;
  21.     public function getId(): ?int
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getHoraire(): ?string
  26.     {
  27.         return $this->horaire;
  28.     }
  29.     public function setHoraire(string $horaire): self
  30.     {
  31.         $this->horaire $horaire;
  32.         return $this;
  33.     }
  34.     public function getContent(): ?string
  35.     {
  36.         return $this->content;
  37.     }
  38.     public function setContent(string $content): self
  39.     {
  40.         $this->content $content;
  41.         return $this;
  42.     }
  43.     public function getOrderBy(): ?int
  44.     {
  45.         return $this->orderBy;
  46.     }
  47.     public function setOrderBy(int $orderBy): self
  48.     {
  49.         $this->orderBy $orderBy;
  50.         return $this;
  51.     }
  52.     public function isIsEnabled(): ?bool
  53.     {
  54.         return $this->isEnabled;
  55.     }
  56.     public function setIsEnabled(bool $isEnabled): self
  57.     {
  58.         $this->isEnabled $isEnabled;
  59.         return $this;
  60.     }
  61. }