src/Entity/FactureFormateur.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FactureFormateurRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=FactureFormateurRepository::class)
  7.  */
  8. class FactureFormateur
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=10)
  18.      */
  19.     private $annee;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=Mois::class, inversedBy="factureFormateurs")
  22.      */
  23.     private $mois;
  24.     /**
  25.      * @ORM\Column(type="text", nullable=true)
  26.      */
  27.     private $url;
  28.     /**
  29.      * @ORM\Column(type="datetime_immutable", nullable=true)
  30.      */
  31.     private $created_at;
  32.     /**
  33.      * @ORM\ManyToOne(targetEntity=Formateur::class, inversedBy="factureFormateurs")
  34.      */
  35.     private $formateur;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getAnnee(): ?string
  41.     {
  42.         return $this->annee;
  43.     }
  44.     public function setAnnee(string $annee): self
  45.     {
  46.         $this->annee $annee;
  47.         return $this;
  48.     }
  49.     public function getMois(): ?Mois
  50.     {
  51.         return $this->mois;
  52.     }
  53.     public function setMois(?Mois $mois): self
  54.     {
  55.         $this->mois $mois;
  56.         return $this;
  57.     }
  58.     public function getUrl(): ?string
  59.     {
  60.         return $this->url;
  61.     }
  62.     public function setUrl(?string $url): self
  63.     {
  64.         $this->url $url;
  65.         return $this;
  66.     }
  67.     public function getCreatedAt(): ?\DateTimeImmutable
  68.     {
  69.         return $this->created_at;
  70.     }
  71.     public function setCreatedAt(?\DateTimeImmutable $created_at): self
  72.     {
  73.         $this->created_at $created_at;
  74.         return $this;
  75.     }
  76.     public function getFormateur(): ?Formateur
  77.     {
  78.         return $this->formateur;
  79.     }
  80.     public function setFormateur(?Formateur $formateur): self
  81.     {
  82.         $this->formateur $formateur;
  83.         return $this;
  84.     }
  85. }