/** * @param $accountGuid Account GUID. * @param DateTime $from Optional start time. * @param DateTime $to Optional end time. * @return Transaction[] */ public function getTransactions($accountGuid, DateTime $from = null, DateTime $to = null) { $format = 'Y-m-d\\TH:i:s\\Z'; return new PagedIterator($this, 'GetTransactions', ['accountGuid' => $accountGuid, 'fromTimestampUtc' => $from ? $from->format($format) : null, 'toTimestampUtc' => $to ? $to->format($format) : null, 'pageSize' => 25], function (stdClass $object) { return Transaction::createFromObject($object); }); }
public function testFactorySetsType() { $this->assert($this->transaction->getType(), equals, TransactionType::BROKERAGE); }