Skip to content

Commit 9b0515d

Browse files
committed
Add set dimension value method to portable time series
1 parent 608db63 commit 9b0515d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Sdmx/api/entities/PortableTimeSeries.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,10 @@ public function getDimensionValue($code)
288288
return $this->findValue($code, $this->dimensions);
289289
}
290290

291+
/**
292+
* @param string $code
293+
* @param string $value
294+
*/
291295
public function setDimensionValue($code, $value)
292296
{
293297
for ($i = 0; $i < count($this->dimensions); $i++) {
@@ -298,8 +302,6 @@ public function setDimensionValue($code, $value)
298302
break;
299303
}
300304
}
301-
302-
return $value;
303305
}
304306

305307
/**

0 commit comments

Comments
 (0)