#[Package('checkout')]
class PaymentTransactionStructFactory extends AbstractPaymentTransactionStructFactory
{ public function getDecorated(): AbstractPaymentTransactionStructFactory
{ throw new DecorationPatternException(self::
class);
} public function sync(OrderTransactionEntity
$orderTransaction, OrderEntity
$order): SyncPaymentTransactionStruct
{ return new SyncPaymentTransactionStruct($orderTransaction,
$order);
} public function async(OrderTransactionEntity
$orderTransaction, OrderEntity
$order, string
$returnUrl): AsyncPaymentTransactionStruct
{ return new AsyncPaymentTransactionStruct($orderTransaction,
$order,
$returnUrl);
} public function prepared(OrderTransactionEntity
$orderTransaction, OrderEntity
$order): PreparedPaymentTransactionStruct
{ return new PreparedPaymentTransactionStruct($orderTransaction,
$order);
}