Skip to content

Commit 810d643

Browse files
authored
Merge pull request #13 from adamhicks/master
Add Details to the Transaction response
2 parents 19b5092 + 76a92ac commit 810d643

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/Luno/Types/Transaction.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)