![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/vendor/magento/module-offline-payments/Block/Info/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\OfflinePayments\Block\Info; class Checkmo extends \Magento\Payment\Block\Info { /** * @var string */ protected $_payableTo; /** * @var string */ protected $_mailingAddress; /** * @var string */ protected $_template = 'Magento_OfflinePayments::info/checkmo.phtml'; /** * Enter description here... * * @return string */ public function getPayableTo() { if ($this->_payableTo === null) { $this->_convertAdditionalData(); } return $this->_payableTo; } /** * Enter description here... * * @return string */ public function getMailingAddress() { if ($this->_mailingAddress === null) { $this->_convertAdditionalData(); } return $this->_mailingAddress; } /** * @deprecated 100.1.1 * @return $this */ protected function _convertAdditionalData() { $this->_payableTo = $this->getInfo()->getAdditionalInformation('payable_to'); $this->_mailingAddress = $this->getInfo()->getAdditionalInformation('mailing_address'); return $this; } /** * @return string */ public function toPdf() { $this->setTemplate('Magento_OfflinePayments::info/pdf/checkmo.phtml'); return $this->toHtml(); } }