for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Date: 19.11.18
* Time: 14:55
*/
namespace AlecRabbit\Structures;
class Trade
{
/** @var int */
public $id;
public $side;
/** @var string */
public $pair;
/** @var float */
public $amount;
public $price;
public $timestamp;
public function __construct(
int $side,
string $pair,
float $price,
float $amount,
int $timestamp,
int $id = 0
) {
$this->side = $side;
$this->pair = $pair;
$this->amount = $amount;
$this->price = $price;
$this->timestamp = $timestamp;
$this->id = $id;
}