for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace HanischIt\KrakenApi\Model\OrdersInfo;
use HanischIt\KrakenApi\Enum\VisibilityEnum;
use HanischIt\KrakenApi\Model\AbstractRequest;
/**
* Class OrdersInfoAbstractRequest
* @package HanischIt\KrakenApi\Model\OrdersInfo
*/
class OrdersInfoAbstractRequest extends AbstractRequest
{
* @var bool
private $trades;
* @var string|null
private $userref;
* @var string
private $txids;
* OrdersInfoAbstractRequest constructor.
* @param bool $trades
* @param null|string $userref
* @param null|string[] $txids
public function __construct(array $txids, $trades = false, $userref = null)
$this->trades = $trades;
if (null !== $userref) {
$this->userref = $userref;
}
$this->txids = implode(",", $txids);
* Returns the api request name
*
* @return string
public function getMethod()
return 'QueryOrders';
public function getVisibility()
return VisibilityEnum::VISIBILITY_PRIVATE;
* @return array
public function getRequestData()
$ret = [];
$ret["trades"] = $this->trades;
if (null !== $this->userref) {
$ret["userref"] = $this->userref;
if (null !== $this->txids) {
$ret["txid"] = $this->txids;
return $ret;
public function getResponseClassName()
return OrdersInfoResponse::class;