コード例 #1
0
 public function testFactorySetsTradeTimestamp()
 {
     $this->assert($this->trade->getTradeTimestamp(), equals, new DateTime("2014-07-31T10:34:05.935412Z"));
 }
コード例 #2
0
 /**
  * List of individual trades.
  * @return array
  */
 public function getTrades()
 {
     return array_map(function (stdClass $object) {
         return Trade::createFromObject($object);
     }, $this->object->Trades);
 }