示例#1
0
 function __construct($txId, $accountNo, $resource_id, $whenBooked, $whenCharged, $txType, $amount, $catalog_bal, $stock_bal, $description, $timestamp)
 {
     parent::__construct($txid, $accountNo, $whenBooked, $whenCharged);
     $this->resourceId = $resource_id;
     $this->stock_bal = $stock_bal;
     $this->catalog_bal = $catalog_bal;
     $this->amount = $amount;
     $this->txType = $txType;
     $this->description = $description;
     $this->timestamp = $timestamp;
     //create database entry
 }
示例#2
0
 function __construct($eventId, Account $account, Resource $item, Quantity $quantity)
 {
     parent::__construct($eventId, $account, $item);
 }