Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Commit f3af4bf

Browse files
author
zorn
committed
getTotal for balance trait
1 parent 8c36fcc commit f3af4bf

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/Response/Traits/Balance.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,12 @@ public function setUnconfirmed($unconfirmed)
5757

5858
return $this;
5959
}
60-
}
60+
61+
/**
62+
* @return float
63+
*/
64+
public function getTotal()
65+
{
66+
return $this->confirmed + $this->unconfirmed;
67+
}
68+
}

0 commit comments

Comments
 (0)