diff options
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/Model.php | 3 | ||||
| -rw-r--r-- | src/model/entities/NodeData.php | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/model/Model.php b/src/model/Model.php index 68c4c08..eeba8b2 100644 --- a/src/model/Model.php +++ b/src/model/Model.php | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | <?php | 1 | <?php |
| 2 | // src/model/Model.php | 2 | // src/model/Model.php |
| 3 | // | ||
| 4 | // à l'occaz, faire des classes métiers: NodeModel = celle-ci | ||
| 5 | // puis PageModel, puis éventuellement UserModel, EmailModel (le calendrier a déjà EventDTO) | ||
| 3 | 6 | ||
| 4 | declare(strict_types=1); | 7 | declare(strict_types=1); |
| 5 | 8 | ||
diff --git a/src/model/entities/NodeData.php b/src/model/entities/NodeData.php index 47e7208..ed94f1b 100644 --- a/src/model/entities/NodeData.php +++ b/src/model/entities/NodeData.php | |||
| @@ -67,7 +67,7 @@ class NodeData | |||
| 67 | { | 67 | { |
| 68 | $this->data = $data; | 68 | $this->data = $data; |
| 69 | }*/ | 69 | }*/ |
| 70 | public function updateData(string $key, string $value = ''): void | 70 | public function updateData(string $key, string|array $value = ''): void |
| 71 | { | 71 | { |
| 72 | if($value !== ''){ | 72 | if($value !== ''){ |
| 73 | $this->data[$key] = $value; | 73 | $this->data[$key] = $value; |
