function __construct($text = null, array $params = array()) { if (!is_null($text)) { $this->setText($text); } parent::__construct($params); }
function __construct($args) { $args['name'] = 'fund'; parent::__construct($args); }
public function __construct($paymentDetails = NULL) { parent::__construct($paymentDetails); }
/** * key-value pair to initialize the class's attributes * @param array $args */ function __construct($args) { $args['name'] = 'cashout'; parent::__construct($args); }
/** * GetTerminalListTransaction constructor. */ public function __construct() { parent::__construct(); $this->action_type = Paymentree::ACTION_TYPE_TERMINAL_CLOSE_LIST; }
/** * PaymentRefundTransaction constructor. */ public function __construct() { parent::__construct(); }
/** * QueryVoidInvoiceNumberTransaction constructor. */ public function __construct() { parent::__construct(); $this->action_type = Paymentree::ACTION_TYPE_QUERY_VOID; }
public function __construct(StockAccount $sourceAcc, StockAccount $destinationAcc, TransactionType $ttype, ResourceType $rtype, Quantity $quantity, $description) { parent::__construct($sourceAcc, $destinationAcc, $ttype, $rtype, $quantity, $description); //e.g supplier account, warehouse account, 'Goods Received Inwards', Samsung Fridge BF-X450, 14 items, 'delivery from supplier xxxx' }
function __construct(Money $amount, $description, TransactionType $txtype) { //$ttype === posting protocol/rule $this->transactionType = $txtype; parent::__construct($amount, $description); }
/** * CommitTransaction constructor. */ public function __construct() { parent::__construct(); $this->action_type = Paymentree::ACTION_TYPE_COMMIT; }
/** * BatchCloseTransaction constructor. * @param string $terminal_number */ public function __construct($terminal_number = 'all') { parent::__construct(); $this->setTerminal($terminal_number); $this->action_type = Paymentree::ACTION_TYPE_TERMINAL_CLOSE; }