src/Entity/Protocolephoto.php line 9
<?php
namespace App\Entity;
use App\Repository\ProtocolephotoRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ProtocolephotoRepository::class)]
class Protocolephoto
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?int $ordre = null;
#[ORM\ManyToOne(inversedBy: 'protocolephotos')]
private ?Protocole $protocole = null;
#[ORM\ManyToOne]
private ?Image $image = null;
public function getId(): ?int
{
return $this->id;
}
public function getOrdre(): ?int
{
return $this->ordre;
}
public function setOrdre(int $ordre): self
{
$this->ordre = $ordre;
return $this;
}
public function getProtocole(): ?Protocole
{
return $this->protocole;
}
public function setProtocole(?Protocole $protocole): self
{
$this->protocole = $protocole;
return $this;
}
public function getImage(): ?Image
{
return $this->image;
}
public function setImage(?Image $image): self
{
$this->image = $image;
return $this;
}
public function __toString(): string
{
return $this->image->getUrlfichier();
}
}