<?php
namespace App\Entity;
use App\Repository\PieceFormateurFourniRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @ORM\Entity(repositoryClass=PieceFormateurFourniRepository::class)
*/
class PieceFormateurFourni
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=PieceFormateur::class, inversedBy="pieceFormateurFournis")
* @ORM\JoinColumn(nullable=false)
*/
private $piece;
/**
* @ORM\ManyToOne(targetEntity=Formateur::class, inversedBy="pieceFormateurFournis")
* @ORM\JoinColumn(nullable=false)
*/
private $formateur;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $url;
public function getId(): ?int
{
return $this->id;
}
public function getPiece(): PieceFormateur
{
return $this->piece;
}
public function setPiece(?PieceFormateur $piece):self
{
$this->piece = $piece;
return $this;
}
public function getFormateur(): ?Formateur
{
return $this->formateur;
}
public function setFormateur(?Formateur $formateur): self
{
$this->formateur = $formateur;
return $this;
}
public function setUrl(?string $url = null)
{
$this->url = $url;
}
public function getUrl():string
{
return $this->url;
}
}