diff options
Diffstat (limited to 'src/model')
-rw-r--r-- | src/model/entities/Page.php | 14 |
1 files changed, 13 insertions, 1 deletions
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 | |||
28 | 28 | ||
29 | private string $page_path = ''; | 29 | private string $page_path = ''; |
30 | 30 | ||
31 | #[ORM\Column(type: "text")] | ||
32 | private string $description; | ||
33 | |||
31 | #[ORM\Column(type: "boolean")] | 34 | #[ORM\Column(type: "boolean")] |
32 | private bool $reachable; | 35 | private bool $reachable; |
33 | 36 | ||
@@ -50,10 +53,11 @@ class Page | |||
50 | /*#[ORM\Column(type: "json", nullable: true)] | 53 | /*#[ORM\Column(type: "json", nullable: true)] |
51 | private ?array $metadata = null;*/ | 54 | private ?array $metadata = null;*/ |
52 | 55 | ||
53 | public function __construct(string $name, string $eop, bool $reachable, bool $in_menu, bool $hidden, ?int $position, ?Page $parent) | 56 | public function __construct(string $name, string $eop, string $description, bool $reachable, bool $in_menu, bool $hidden, ?int $position, ?Page $parent) |
54 | { | 57 | { |
55 | $this->name_page = $name; | 58 | $this->name_page = $name; |
56 | $this->end_of_path = $eop; | 59 | $this->end_of_path = $eop; |
60 | $this->description = $description; | ||
57 | $this->reachable = $reachable; | 61 | $this->reachable = $reachable; |
58 | $this->in_menu = $in_menu; | 62 | $this->in_menu = $in_menu; |
59 | $this->hidden = $hidden; | 63 | $this->hidden = $hidden; |
@@ -91,6 +95,14 @@ class Page | |||
91 | { | 95 | { |
92 | $this->end_of_path = $end_of_path; | 96 | $this->end_of_path = $end_of_path; |
93 | } | 97 | } |
98 | public function getDescription(): string | ||
99 | { | ||
100 | return $this->description; | ||
101 | } | ||
102 | public function setDescription(string $description): void | ||
103 | { | ||
104 | $this->description = $description; | ||
105 | } | ||
94 | public function isReachable(): bool | 106 | public function isReachable(): bool |
95 | { | 107 | { |
96 | return $this->reachable; | 108 | return $this->reachable; |