<?phpnamespace App\Entity;use App\Repository\AvisRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;#[ORM\Entity(repositoryClass: AvisRepository::class)]class Avis{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id; #[ORM\Column(type: "string",length: 225)] private ?string $nom; #[ORM\Column(type: "string",length: 225)] private ?string $titre; #[ORM\Column(type: "integer",length: 10)] private ?int $note; #[ORM\Column(type: "string",length: 100)] private ?string $statut; #[ORM\Column] private ?string $commentaire; #[ORM\Column(length: 10)] private ?int $adminsid; #[ORM\Column] private ?\DateTimeImmutable $created_at = null; #[ORM\Column] private ?\DateTimeImmutable $updated_at = null; public function __construct(){ $this->note = 0; $this->created_at = new \DateTimeImmutable(); $this->updated_at = new \DateTimeImmutable(); } public function getId(): ?int { return $this->id; } public function getNom(): ?string { return $this->nom; } public function setNom(string $nom): self { $this->nom = $nom; return $this; } public function getTitre(): ?string { return $this->titre; } public function setTitre(string $titre): self { $this->titre = $titre; return $this; } public function getNote(): ?int { return $this->note; } public function setNote(int $note): self { $this->note = $note; return $this; } public function getCommentaire(): string { return $this->commentaire; } public function setCommentaire(string $commentaire): static { $this->commentaire = $commentaire; return $this; } public function getStatut(): ?string { return $this->statut; } public function setStatut(string $statut): static { $this->statut = $statut; return $this; } public function getAdminsId(): ?int { return $this->adminsid; } public function setAdminsId(int $adminsid): static { $this->adminsid = $adminsid; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->created_at; } public function setCreatedAt(\DateTimeImmutable $created_at): static { $this->created_at = $created_at; return $this; } public function getUpdatedAt(): ?\DateTimeImmutable { return $this->updated_at; } public function UpdatedAt(\DateTimeImmutable $updated_at): static { $this->updated_at = $updated_at; return $this; }}