for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace HanischIt\KrakenApi\Model\OHLCData;
use HanischIt\KrakenApi\Model\ResponseInterface;
/**
* Class ServerTimeResponse
*
* @package HanischIt\KrakenApi\Model\ServerTime
*/
class OHLCDataResponse implements ResponseInterface
{
* @var int
private $last;
* @var OHLCDataModel[]
private $ohlcDataModels;
* @param array $data
public function manualMapping($data)
$this->last = $data["last"];
foreach ($data as $assetPair => $assetDataArr) {
if ($assetPair == "last") {
continue;
}
foreach ($assetDataArr as $assetData) {
$this->ohlcDataModels[] = new OHLCDataModel($assetData[0], $assetData[1], $assetData[2], $assetData[3], $assetData[4], $assetData[5], $assetData[6], $assetData[7]);
* @return int
public function getLast()
return $this->last;
* @return OHLCDataModel[]
public function getOhlcDataModels()
return $this->ohlcDataModels;