From 4efa19d4357ab204d62397f1849e4651906e0e70 Mon Sep 17 00:00:00 2001 From: polo Date: Sat, 10 May 2025 23:51:37 +0200 Subject: =?UTF-8?q?fichiers=20manquant=20du=20commit=20pr=C3=A9c=C3=A9dent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/model/entities/NodeData.php | 10 +++++++++- src/model/entities/Page.php | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) (limited to 'src/model/entities') diff --git a/src/model/entities/NodeData.php b/src/model/entities/NodeData.php index aaffb6a..8f0f511 100644 --- a/src/model/entities/NodeData.php +++ b/src/model/entities/NodeData.php @@ -43,13 +43,21 @@ class NodeData $this->images = $images; } + public function getId(): int + { + return $this->id_node_data; + } public function getData(): array { return $this->data; } - public function setData(array $data): void + /*public function setData(array $data): void { $this->data = $data; + }*/ + public function updateData(string $key, string $value): void + { + $this->data[$key] = $value; } /*public function setNode(Node $node): void { diff --git a/src/model/entities/Page.php b/src/model/entities/Page.php index 9564342..1ad9ddb 100644 --- a/src/model/entities/Page.php +++ b/src/model/entities/Page.php @@ -71,6 +71,10 @@ class Page { return $this->name_page; } + public function setPageName(string $name): void + { + $this->name_page = $name; + } public function getPagePath(): string { return $this->page_path; @@ -83,6 +87,10 @@ class Page { return $this->end_of_path; } + public function setEndOfPath(string $end_of_path):void + { + $this->end_of_path = $end_of_path; + } public function isReachable(): bool { return $this->reachable; -- cgit v1.2.3