File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,11 @@ class Transaction
1919 * Human-readable description of the transaction.
2020 */
2121 protected $ description ;
22+
23+ /**
24+ * Human-readable label-value attributes.
25+ */
26+ protected $ details ;
2227 protected $ row_index ;
2328 protected $ timestamp ;
2429
@@ -155,6 +160,25 @@ public function setDescription(string $description)
155160 $ this ->description = $ description ;
156161 }
157162
163+ /**
164+ * @return array
165+ */
166+ public function getDetails (): array
167+ {
168+ if (!isset ($ this ->details )) {
169+ return [];
170+ }
171+ return $ this ->details ;
172+ }
173+
174+ /**
175+ * @param array $details
176+ */
177+ public function setDetails (array $ details )
178+ {
179+ $ this ->details = $ details ;
180+ }
181+
158182 /**
159183 * @return int
160184 */
You can’t perform that action at this time.
0 commit comments