<?php
namespace App\Entity;
use App\Repository\TestimonialRepository;
use Doctrine\DBAL\Types\Types;
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(type: Types::TEXT)]
private ?string $comments = null;
#[ORM\Column(length: 255)]
private ?string $who = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $related = null;
#[ORM\Column(nullable: true)]
private ?int $displayed = 1;
public function getId(): ?int
{
return $this->id;
}
public function getComments(): ?string
{
return $this->comments;
}
public function setComments(string $comments): static
{
$this->comments = $comments;
return $this;
}
public function getWho(): ?string
{
return $this->who;
}
public function setWho(string $who): static
{
$this->who = $who;
return $this;
}
public function getRelated(): ?string
{
return $this->related;
}
public function setRelated(?string $related): static
{
$this->related = $related;
return $this;
}
public function getDisplayed(): ?int
{
return $this->displayed;
}
public function setDisplayed(?int $displayed): static
{
$this->displayed = $displayed;
return $this;
}
}