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\Enum\VisibilityEnum;
use HanischIt\KrakenApi\Model\RequestInterface;
/**
* Class ServerTimeRequest
*
* @package HanischIt\KrakenApi\Model\ServerTime
*/
class OHLCDataRequest implements RequestInterface
{
* @var string
private $pair;
* @var int
private $interval;
private $since;
* OHLCDataRequest constructor.
* @param string $pair
* @param int $interval
* @param int $since
public function __construct($pair, $interval, $since)
$this->pair = $pair;
$this->interval = $interval;
$this->since = $since;
}
* Returns the api request name
* @return string
public function getMethod()
return 'OHLC';
public function getVisibility()
return VisibilityEnum::VISIBILITY_PUBLIC;
* @return array
public function getRequestData()
$ret = [];
$ret["pair"] = $this->pair;
if (null !== $this->interval) {
$ret["interval"] = $this->interval;
if (null !== $this->since) {
$ret["since"] = $this->since;
return $ret;
public function getResponseClassName()
return OHLCDataResponse::class;