diff options
Diffstat (limited to 'src/model/entities/NodeData.php')
-rw-r--r-- | src/model/entities/NodeData.php | 10 |
1 files changed, 9 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 | { |