diff options
Diffstat (limited to 'src/model/entities')
-rw-r--r-- | src/model/entities/NodeData.php | 10 | ||||
-rw-r--r-- | src/model/entities/Page.php | 8 |
2 files changed, 17 insertions, 1 deletions
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 | |||
43 | $this->images = $images; | 43 | $this->images = $images; |
44 | } | 44 | } |
45 | 45 | ||
46 | public function getId(): int | ||
47 | { | ||
48 | return $this->id_node_data; | ||
49 | } | ||
46 | public function getData(): array | 50 | public function getData(): array |
47 | { | 51 | { |
48 | return $this->data; | 52 | return $this->data; |
49 | } | 53 | } |
50 | public function setData(array $data): void | 54 | /*public function setData(array $data): void |
51 | { | 55 | { |
52 | $this->data = $data; | 56 | $this->data = $data; |
57 | }*/ | ||
58 | public function updateData(string $key, string $value): void | ||
59 | { | ||
60 | $this->data[$key] = $value; | ||
53 | } | 61 | } |
54 | /*public function setNode(Node $node): void | 62 | /*public function setNode(Node $node): void |
55 | { | 63 | { |
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 | |||
71 | { | 71 | { |
72 | return $this->name_page; | 72 | return $this->name_page; |
73 | } | 73 | } |
74 | public function setPageName(string $name): void | ||
75 | { | ||
76 | $this->name_page = $name; | ||
77 | } | ||
74 | public function getPagePath(): string | 78 | public function getPagePath(): string |
75 | { | 79 | { |
76 | return $this->page_path; | 80 | return $this->page_path; |
@@ -83,6 +87,10 @@ class Page | |||
83 | { | 87 | { |
84 | return $this->end_of_path; | 88 | return $this->end_of_path; |
85 | } | 89 | } |
90 | public function setEndOfPath(string $end_of_path):void | ||
91 | { | ||
92 | $this->end_of_path = $end_of_path; | ||
93 | } | ||
86 | public function isReachable(): bool | 94 | public function isReachable(): bool |
87 | { | 95 | { |
88 | return $this->reachable; | 96 | return $this->reachable; |