Cielo\Transaction::__construct PHP Method

__construct() public method

public __construct ( cielo\Merchant $merchant, cielo\Holder $holder, cielo\Order $order, cielo\PaymentMethod $paymentMethod, string $returnURL, boolean $authorize, boolean $capture )
$merchant cielo\Merchant
$holder cielo\Holder
$order cielo\Order
$paymentMethod cielo\PaymentMethod
$returnURL string
$authorize boolean
$capture boolean
    public function __construct(Merchant $merchant, Holder $holder, Order $order, PaymentMethod $paymentMethod, $returnURL, $authorize, $capture)
    {
        $this->setMerchant($merchant);
        $this->setHolder($holder);
        $this->setOrder($order);
        $this->setPaymentMethod($paymentMethod);
        $this->setReturnURL($returnURL);
        $this->setAuthorize($authorize);
        $this->setCapture($capture);
    }