<?php
namespace App\Entity;
use App\Repository\ImagesRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ImagesRepository::class)
*/
class Images
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $Lien;
/**
* @ORM\ManyToOne(targetEntity=Annonces::class, inversedBy="images", cascade={"persist"})
*/
private $Annonces;
public function getId(): ?int
{
return $this->id;
}
public function getLien(): ?string
{
return $this->Lien;
}
public function setLien(?string $Lien): self
{
$this->Lien = $Lien;
return $this;
}
public function getAnnonces(): ?Annonces
{
return $this->Annonces;
}
public function setAnnonces(?Annonces $Annonces): self
{
$this->Annonces = $Annonces;
return $this;
}
}