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