aboutsummaryrefslogtreecommitdiff
path: root/src/model/entities/NodeData.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/entities/NodeData.php')
-rw-r--r--src/model/entities/NodeData.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/model/entities/NodeData.php b/src/model/entities/NodeData.php
index b25b540..4c07a69 100644
--- a/src/model/entities/NodeData.php
+++ b/src/model/entities/NodeData.php
@@ -45,6 +45,7 @@ class NodeData
45 private Collection $nda_collection; 45 private Collection $nda_collection;
46 46
47 private int $nb_pages = 1; 47 private int $nb_pages = 1;
48 private array $emails = []; // noeud show_emails uniquement
48 49
49 public function __construct(array $data, Node $node, Collection $nda_collection = new ArrayCollection, ?string $presentation = null, ?bool $chrono_order = null) 50 public function __construct(array $data, Node $node, Collection $nda_collection = new ArrayCollection, ?string $presentation = null, ?bool $chrono_order = null)
50 { 51 {
@@ -69,7 +70,7 @@ class NodeData
69 { 70 {
70 $this->data = $data; 71 $this->data = $data;
71 }*/ 72 }*/
72 public function updateData(string $key, string|array $value = ''): void 73 public function updateData(string $key, string|bool|array $value = ''): void
73 { 74 {
74 if($value !== ''){ 75 if($value !== ''){
75 $this->data[$key] = $value; 76 $this->data[$key] = $value;
@@ -179,4 +180,13 @@ class NodeData
179 $this->new_nda = new NodeDataAsset($this, $asset, $role); 180 $this->new_nda = new NodeDataAsset($this, $asset, $role);
180 $this->addNodeDataAsset($this->new_nda); 181 $this->addNodeDataAsset($this->new_nda);
181 }*/ 182 }*/
183
184 public function getEmails(): array
185 {
186 return $this->emails;
187 }
188 public function setEmails(array $emails): void
189 {
190 $this->emails = $emails;
191 }
182} \ No newline at end of file 192} \ No newline at end of file