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

Commit 0327dfd

Browse files
committed
Electrum-LTC support
1 parent 6bcfa9d commit 0327dfd

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

src/Response/Hydrator/Payment/Amount.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public function __construct()
1919

2020
$namingStrategy = new MapNamingStrategy([
2121
'amount (BTC)' => 'bitcoins',
22+
'amount (LTC)' => 'litecoins',
2223
'amount' => 'satoshis',
2324
]);
2425

src/Response/Model/Payment/Amount.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ class Amount
1212
*/
1313
private $bitcoins = 0;
1414

15+
/**
16+
* @var float
17+
*/
18+
private $litecoins = 0;
19+
1520
/**
1621
* @var int
1722
*/
@@ -37,6 +42,26 @@ public function setBitcoins($bitcoins)
3742
return $this;
3843
}
3944

45+
/**
46+
* @return float
47+
*/
48+
public function getLitecoins()
49+
{
50+
return $this->litecoins;
51+
}
52+
53+
/**
54+
* @param float $litecoins
55+
*
56+
* @return Amount
57+
*/
58+
public function setLitecoins($litecoins)
59+
{
60+
$this->litecoins = $litecoins;
61+
62+
return $this;
63+
}
64+
4065
/**
4166
* @return int
4267
*/

0 commit comments

Comments
 (0)