1234567891011121314151617181920212223 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Quote\Model\Quote\Address\RateResult;
- class Error extends AbstractResult
- {
- /**
- * @return mixed
- */
- public function getErrorMessage()
- {
- if (!$this->getData('error_message')) {
- $this->setData(
- 'error_message',
- __('This shipping method is not available. To use this shipping method, please contact us.')
- );
- }
- return $this->getData('error_message');
- }
- }
|