<?php
namespace App\Entity;
use App\Repository\FavorisRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FavorisRepository::class)
*/
class Favoris
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Annonces::class, inversedBy="favoris")
*/
private $Annonces;
/**
* @ORM\Column(type="datetime")
*/
private $Date;
/**
* @ORM\ManyToOne(targetEntity=User::class, inversedBy="favoris")
*/
private $User;
public function getId(): ?int
{
return $this->id;
}
public function getAnnonces(): ?Annonces
{
return $this->Annonces;
}
public function setAnnonces(?Annonces $Annonces): self
{
$this->Annonces = $Annonces;
return $this;
}
public function getDate(): ?\DateTimeInterface
{
return $this->Date;
}
public function setDate(\DateTimeInterface $Date): self
{
$this->Date = $Date;
return $this;
}
public function getUser(): ?User
{
return $this->User;
}
public function setUser(?User $User): self
{
$this->User = $User;
return $this;
}
}