src/Entity/CmsQuote.php line 10
<?phpnamespace App\Entity;use App\Repository\CmsQuoteRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: CmsQuoteRepository::class)]class CmsQuote{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: Types::TEXT)]private ?string $quote = null;#[ORM\Column(length: 255)]private ?string $author = null;#[ORM\Column(length: 255)]private ?string $profesion = null;#[ORM\Column]private ?\DateTimeImmutable $createdAt = null;#[ORM\Column]private ?\DateTimeImmutable $updatedAt = null;#[ORM\OneToOne(cascade: ['persist', 'remove'])]private ?Attachment $thumbnail = null;#[ORM\Column]private ?bool $isPublic = null;public function __construct(){if (!$this->createdAt)$this->createdAt = new \DateTimeImmutable();$this->updatedAt = new \DateTimeImmutable();}public function getId(): ?int{return $this->id;}public function getQuote(): ?string{return $this->quote;}public function setQuote(string $quote): self{$this->quote = $quote;return $this;}public function getAuthor(): ?string{return $this->author;}public function setAuthor(string $author): self{$this->author = $author;return $this;}public function getProfesion(): ?string{return $this->profesion;}public function setProfesion(string $profesion): self{$this->profesion = $profesion;return $this;}public function getCreatedAt(): ?\DateTimeImmutable{return $this->createdAt;}public function setCreatedAt(\DateTimeImmutable $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getUpdatedAt(): ?\DateTimeImmutable{return $this->updatedAt;}public function setUpdatedAt(\DateTimeImmutable $updatedAt): self{$this->updatedAt = $updatedAt;return $this;}public function getThumbnail(): ?Attachment{return $this->thumbnail;}public function setThumbnail(?Attachment $thumbnail): self{$this->thumbnail = $thumbnail;return $this;}public function isIsPublic(): ?bool{return $this->isPublic;}public function setIsPublic(bool $isPublic): self{$this->isPublic = $isPublic;return $this;}}