src/Entity/Information.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InformationRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassInformationRepository::class)]
  7. class Information
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\ManyToOne(inversedBy'information')]
  14.     private ?Dentiste $dentiste null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $description null;
  17.     public function getId(): ?int
  18.     {
  19.         return $this->id;
  20.     }
  21.     public function getDentiste(): ?Dentiste
  22.     {
  23.         return $this->dentiste;
  24.     }
  25.     public function setDentiste(?Dentiste $dentiste): static
  26.     {
  27.         $this->dentiste $dentiste;
  28.         return $this;
  29.     }
  30.     public function getDescription(): ?string
  31.     {
  32.         return $this->description;
  33.     }
  34.     public function setDescription(?string $description): static
  35.     {
  36.         $this->description $description;
  37.         return $this;
  38.     }
  39. }