<?phpdeclare(strict_types=1);/* * This file is part of the ArtHotel Naquera website. * * For the full copyright and license information, * please read the LICENSE.md file that was distributed with this source code. * * Copyright (c) 2023. */namespace App\Entity;use App\Repository\PostRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;#[ORM\Entity(repositoryClass: PostRepository::class)]class Post{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 2)] private ?string $language = null; #[ORM\Column(length: 255)] private string $title = ''; #[ORM\Column(length: 255)] private string $subtitle = ''; #[ORM\Column(length: 50)] private string $slug = ''; #[ORM\Column(length: 255)] private string $image = ''; #[ORM\Column(type: Types::TEXT)] private string $text = ''; #[Gedmo\Timestampable(on: 'create')] #[ORM\Column(type: Types::DATETIME_MUTABLE)] private \DateTime $createdAt; #[ORM\Column(type: Types::BOOLEAN)] private bool $published; public function getId(): ?int { return $this->id; } public function getLanguage(): ?string { return $this->language; } public function setLanguage(string $language): self { $this->language = $language; return $this; } public function getTitle(): string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getSubtitle(): string { return $this->subtitle; } public function setSubtitle(?string $subtitle): self { $this->subtitle = $subtitle; return $this; } public function getImage(): string { return $this->image; } public function setImage(string $image): self { $this->image = $image; return $this; } public function getText(): ?string { return $this->text; } public function setText(string $text): self { $this->text = $text; return $this; } public function getCreatedAt(): \DateTime { return $this->createdAt; } public function setCreatedAt(\DateTime $createdAt): void { $this->createdAt = $createdAt; } public function isPublished(): bool { return $this->published; } public function setPublished(bool $published): void { $this->published = $published; } public function getSlug(): string { return $this->slug; } public function setSlug(string $slug): void { $this->slug = $slug; }}