<?phpnamespace App\Entity;use App\Repository\TestimonialRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: TestimonialRepository::class)]class Testimonial{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255)] private ?string $name = null; #[ORM\Column(type: 'text')] private ?string $content = null; #[ORM\Column(type: 'datetime')] private ?\DateTimeInterface $createdAt = null; #[ORM\Column(length: 255, nullable: true)] private ?string $image = null; #[ORM\Column(type: 'integer', options: ['default' => 5])] private int $rating = 5; public function __construct() { $this->createdAt = new \DateTime(); } 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 getContent(): ?string { return $this->content; } public function setContent(string $content): self { $this->content = $content; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getImage(): ?string { return $this->image; } public function setImage(?string $image): self { $this->image = $image; return $this; } public function getRating(): int { return $this->rating; } public function setRating(int $rating): self { $this->rating = $rating; return $this; }}