for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: fabia
* Date: 27.08.2017
* Time: 19:32
*/
namespace HanischIt\KrakenApi\Call\TradesHistory\Model;
* Class TradeModel
* @package HanischIt\KrakenApi\Call\TradesHistory\Model
class TradeModel
{
* @var string
private $ordertxid;
private $pair;
* @var int
private $time;
private $type;
private $ordertype;
* @var float
private $price;
private $cost;
private $fee;
private $vol;
private $margin;
private $misc;
private $closing;
* Trade constructor.
* @param string $ordertxid
* @param string $pair
* @param int $time
* @param string $type
* @param string $ordertype
* @param float $price
* @param float $cost
* @param float $fee
* @param float $vol
* @param float $margin
* @param string $misc
* @param string $closing
public function __construct(
$ordertxid,
$pair,
$time,
$type,
$ordertype,
$price,
$cost,
$fee,
$vol,
$margin,
$misc,
$closing
) {
$this->ordertxid = $ordertxid;
$this->pair = $pair;
$this->time = $time;
$this->type = $type;
$this->ordertype = $ordertype;
$this->price = $price;
$this->cost = $cost;
$this->fee = $fee;
$this->vol = $vol;
$this->margin = $margin;
$this->misc = $misc;
$this->closing = $closing;
}
* @return string
public function getOrdertxid()
return $this->ordertxid;
public function getPair()
return $this->pair;
* @return int
public function getTime()
return $this->time;
public function getType()
return $this->type;
public function getOrdertype()
return $this->ordertype;
* @return float
public function getPrice()
return $this->price;
public function getCost()
return $this->cost;
public function getFee()
return $this->fee;
public function getVol()
return $this->vol;
public function getMargin()
return $this->margin;
public function getMisc()
return $this->misc;
public function getClosing()
return $this->closing;