src/Entity/Transcription.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TranscriptionRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassTranscriptionRepository::class)]
  7. class Transcription
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255)]
  14.     private ?string $titre null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $contenu null;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getTitre(): ?string
  22.     {
  23.         return $this->titre;
  24.     }
  25.     public function setTitre(string $titre): static
  26.     {
  27.         $this->titre $titre;
  28.         return $this;
  29.     }
  30.     public function getContenu(): ?string
  31.     {
  32.         return $this->contenu;
  33.     }
  34.     public function setContenu(?string $contenu): static
  35.     {
  36.         $this->contenu $contenu;
  37.         return $this;
  38.     }
  39. }