<?php
namespace App\Entity;
use App\Repository\AvisClientRepository;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Produit\Produit;
#[ORM\Entity(repositoryClass: AvisClientRepository::class)]
class AvisClient
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $name;
#[ORM\Column(type: 'integer')]
private $age;
#[ORM\Column(type: 'string', length: 255)]
private $descriptions;
#[ORM\Column(type: 'float')]
private $note;
#[ORM\ManyToOne(targetEntity: Produit::class, inversedBy: 'avisClients')]
private $produit;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $image;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getAge(): ?int
{
return $this->age;
}
public function setAge(int $age): self
{
$this->age = $age;
return $this;
}
public function getDescriptions(): ?string
{
return $this->descriptions;
}
public function setDescriptions(string $descriptions): self
{
$this->descriptions = $descriptions;
return $this;
}
public function getNote(): ?float
{
return $this->note;
}
public function setNote(float $note): self
{
$this->note = $note;
return $this;
}
public function getProduit(): ?Produit
{
return $this->produit;
}
public function setProduit(?Produit $produit): self
{
$this->produit = $produit;
return $this;
}
public function getImage(): ?string
{
return $this->image;
}
public function setImage(string $image): self
{
$this->image = $image;
return $this;
}
}