<?php
namespace App\Entity;
use App\Repository\ServiceFeedbackRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ServiceFeedbackRepository::class)]
class ServiceFeedback
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private int $id;
#[ORM\Column(type: 'datetime', nullable: true)]
private mixed $date;
#[ORM\Column(type: 'text', nullable: true)]
private ?string $commentaire= null;
#[ORM\ManyToOne(targetEntity: Service::class, inversedBy: 'serviceFeedback')]
private mixed $service;
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 getCommentaire(): ?string
{
return $this->commentaire;
}
public function setCommentaire(?string $commentaire): self
{
$this->commentaire = $commentaire;
return $this;
}
public function getService(): ?Service
{
return $this->service;
}
public function setService(?Service $service): self
{
$this->service = $service;
return $this;
}
}