src/Entity/CertifElearning.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CertifElearningRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCertifElearningRepository::class)]
  7. class CertifElearning
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $image null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $nom null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $prenom null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $titre null;
  21.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  22.     private ?\DateTimeInterface $date null;
  23.     #[ORM\ManyToOne(inversedBy'certifElearnings')]
  24.     private ?FormationElearning $formation null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getImage(): ?string
  30.     {
  31.         return $this->image;
  32.     }
  33.     public function setImage(?string $image): self
  34.     {
  35.         $this->image $image;
  36.         return $this;
  37.     }
  38.     public function getNom(): ?string
  39.     {
  40.         return $this->nom;
  41.     }
  42.     public function setNom(?string $nom): self
  43.     {
  44.         $this->nom $nom;
  45.         return $this;
  46.     }
  47.     public function getPrenom(): ?string
  48.     {
  49.         return $this->prenom;
  50.     }
  51.     public function setPrenom(?string $prenom): self
  52.     {
  53.         $this->prenom $prenom;
  54.         return $this;
  55.     }
  56.     public function getTitre(): ?string
  57.     {
  58.         return $this->titre;
  59.     }
  60.     public function setTitre(?string $titre): self
  61.     {
  62.         $this->titre $titre;
  63.         return $this;
  64.     }
  65.     public function getDate(): ?\DateTimeInterface
  66.     {
  67.         return $this->date;
  68.     }
  69.     public function setDate(?\DateTimeInterface $date): self
  70.     {
  71.         $this->date $date;
  72.         return $this;
  73.     }
  74.     public function getFormation(): ?FormationElearning
  75.     {
  76.         return $this->formation;
  77.     }
  78.     public function setFormation(?FormationElearning $formation): self
  79.     {
  80.         $this->formation $formation;
  81.         return $this;
  82.     }
  83. }