12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Signifyd\Model\QuoteSession\Adminhtml;
- use Magento\Backend\Model\Session\Quote as BackendQuoteSession;
- use Magento\Signifyd\Model\QuoteSession\QuoteSessionInterface;
- /**
- * Implementation of QuoteSessionInterface for Magento backend checkout.
- */
- class BackendSession implements QuoteSessionInterface
- {
- /**
- * @var BackendQuoteSession
- */
- private $backendQuoteSession;
- /**
- * BackendSession constructor.
- *
- * Class uses backend session for retrieving quote.
- *
- * @param BackendQuoteSession $backendQuoteSession
- */
- public function __construct(BackendQuoteSession $backendQuoteSession)
- {
- $this->backendQuoteSession = $backendQuoteSession;
- }
- /**
- * @inheritdoc
- */
- public function getQuote()
- {
- return $this->backendQuoteSession->getQuote();
- }
- }
|