<?phpnamespace App\Entity;use App\Repository\HomeTextRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: HomeTextRepository::class)]class HomeText{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\Column(length: 255, nullable: true)] private ?string $title = null; #[ORM\Column(type: Types::TEXT, nullable: true)] private ?string $text = null; #[ORM\Column(length: 255, nullable: true)] private ?string $picture_url = null; #[ORM\Column] private ?bool $active = false; #[ORM\Column(nullable: true)] private ?\DateTimeImmutable $createdAt = null; public function __construct() { $this->createdAt = new \DateTimeImmutable(); } public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle(?string $title): self { $this->title = $title; return $this; } public function getText(): ?string { return $this->text; } public function setText(?string $text): self { $this->text = $text; return $this; } public function getPictureUrl(): ?string { return $this->picture_url; } public function setPictureUrl(?string $picture_url): self { $this->picture_url = $picture_url; return $this; } public function isActive(): ?bool { return $this->active; } public function setActive(bool $active): self { $this->active = $active; return $this; } public function getCreatedAt(): ?\DateTimeImmutable { return $this->createdAt; } public function setCreatedAt(\DateTimeImmutable $createdAt): self { $this->createdAt = $createdAt; return $this; }}