From f0d1cd5d68579b462cf01a4a9f7d558a231bc072 Mon Sep 17 00:00:00 2001 From: polo Date: Thu, 9 Oct 2025 14:40:54 +0200 Subject: =?UTF-8?q?description=20de=20page=20d=C3=A9plac=C3=A9e=20dans=20l?= =?UTF-8?q?a=20table=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/entities/Page.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/model/entities') diff --git a/src/model/entities/Page.php b/src/model/entities/Page.php index bcf49db..5b54ae6 100644 --- a/src/model/entities/Page.php +++ b/src/model/entities/Page.php @@ -28,6 +28,9 @@ class Page private string $page_path = ''; + #[ORM\Column(type: "text")] + private string $description; + #[ORM\Column(type: "boolean")] private bool $reachable; @@ -50,10 +53,11 @@ class Page /*#[ORM\Column(type: "json", nullable: true)] private ?array $metadata = null;*/ - public function __construct(string $name, string $eop, bool $reachable, bool $in_menu, bool $hidden, ?int $position, ?Page $parent) + public function __construct(string $name, string $eop, string $description, bool $reachable, bool $in_menu, bool $hidden, ?int $position, ?Page $parent) { $this->name_page = $name; $this->end_of_path = $eop; + $this->description = $description; $this->reachable = $reachable; $this->in_menu = $in_menu; $this->hidden = $hidden; @@ -91,6 +95,14 @@ class Page { $this->end_of_path = $end_of_path; } + public function getDescription(): string + { + return $this->description; + } + public function setDescription(string $description): void + { + $this->description = $description; + } public function isReachable(): bool { return $this->reachable; -- cgit v1.2.3