src/Entity/PieceFormateurFourni.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PieceFormateurFourniRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Component\HttpFoundation\File\File;
  8. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  9. /**
  10.  * @ORM\Entity(repositoryClass=PieceFormateurFourniRepository::class)
  11.  */
  12. class PieceFormateurFourni
  13. {
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\ManyToOne(targetEntity=PieceFormateur::class, inversedBy="pieceFormateurFournis")
  22.      * @ORM\JoinColumn(nullable=false)
  23.      */
  24.     private $piece;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity=Formateur::class, inversedBy="pieceFormateurFournis")
  27.      * @ORM\JoinColumn(nullable=false)
  28.      */
  29.     private $formateur;
  30.     
  31.     /**
  32.      * @ORM\Column(type="text", nullable=true)
  33.      */
  34.     private $url;
  35.     
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.    
  41.     public function getPiece(): PieceFormateur
  42.     {
  43.         return $this->piece;
  44.     }
  45.     public function setPiece(?PieceFormateur $piece):self 
  46.     {
  47.         $this->piece $piece;
  48.         
  49.         return $this;
  50.     }
  51.     public function getFormateur(): ?Formateur
  52.     {
  53.         return $this->formateur;
  54.     }
  55.     public function setFormateur(?Formateur $formateur): self
  56.     {
  57.         $this->formateur $formateur;
  58.         return $this;
  59.     }
  60.     public function setUrl(?string $url null)
  61.     {
  62.         $this->url $url;
  63.     }
  64.     public function getUrl():string
  65.     {
  66.         return $this->url;
  67.     }
  68. }