1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Payment\Gateway\Data;
- use Magento\Payment\Model\InfoInterface;
- class PaymentDataObject implements PaymentDataObjectInterface
- {
- /**
- * @var OrderAdapterInterface
- */
- private $order;
- /**
- * @var InfoInterface
- */
- private $payment;
- /**
- * @param OrderAdapterInterface $order
- * @param InfoInterface $payment
- */
- public function __construct(
- OrderAdapterInterface $order,
- InfoInterface $payment
- ) {
- $this->order = $order;
- $this->payment = $payment;
- }
- /**
- * Returns order
- *
- * @return OrderAdapterInterface
- */
- public function getOrder()
- {
- return $this->order;
- }
- /**
- * Returns payment
- *
- * @return InfoInterface
- */
- public function getPayment()
- {
- return $this->payment;
- }
- }
|