本文整理汇总了PHP中Transaction::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Transaction::__construct方法的具体用法?PHP Transaction::__construct怎么用?PHP Transaction::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Transaction
的用法示例。
在下文中一共展示了Transaction::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function __construct($text = null, array $params = array())
{
if (!is_null($text)) {
$this->setText($text);
}
parent::__construct($params);
}
示例2:
function __construct($args)
{
$args['name'] = 'fund';
parent::__construct($args);
}
示例3: __construct
public function __construct($paymentDetails = NULL)
{
parent::__construct($paymentDetails);
}
示例4:
/**
* key-value pair to initialize the class's attributes
* @param array $args
*/
function __construct($args)
{
$args['name'] = 'cashout';
parent::__construct($args);
}
示例5: __construct
/**
* GetTerminalListTransaction constructor.
*/
public function __construct()
{
parent::__construct();
$this->action_type = Paymentree::ACTION_TYPE_TERMINAL_CLOSE_LIST;
}
示例6: __construct
/**
* PaymentRefundTransaction constructor.
*/
public function __construct()
{
parent::__construct();
}
示例7: __construct
/**
* QueryVoidInvoiceNumberTransaction constructor.
*/
public function __construct()
{
parent::__construct();
$this->action_type = Paymentree::ACTION_TYPE_QUERY_VOID;
}
示例8: __construct
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'
}
示例9:
function __construct(Money $amount, $description, TransactionType $txtype)
{
//$ttype === posting protocol/rule
$this->transactionType = $txtype;
parent::__construct($amount, $description);
}
示例10: __construct
/**
* CommitTransaction constructor.
*/
public function __construct()
{
parent::__construct();
$this->action_type = Paymentree::ACTION_TYPE_COMMIT;
}
示例11: __construct
/**
* 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;
}