for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace HanischIt\KrakenApi\Model\LedgersInfo;
use HanischIt\KrakenApi\Calls\Shared\Model\LedgerInfoModel;
use HanischIt\KrakenApi\Model\ResponseInterface;
/**
* Class LedgersInfoResponse
* @package HanischIt\KrakenApi\Model\Trades
*/
class LedgersInfoResponse implements ResponseInterface
{
* @var LedgerInfoModel[]
private $ledgerInfos;
* @param array $result
public function manualMapping($result)
foreach ($result as $ledgerId => $ledger) {
$this->ledgerInfos[] = new LedgerInfoModel(
$ledgerId,
$ledger['refid'],
$ledger['time'],
$ledger['type'],
$ledger['aclass'],
$ledger['asset'],
$ledger['amount'],
$ledger['fee'],
$ledger['balance']
);
}
* @return LedgerInfoModel[]
public function getLedgerInfos()
return $this->ledgerInfos;