1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Msrp\Block;
- /**
- * @api
- * @since 100.0.2
- */
- class Popup extends \Magento\Framework\View\Element\Template
- {
- /**
- * @var \Magento\Msrp\Model\Config
- */
- protected $config;
- /**
- * @param \Magento\Framework\View\Element\Template\Context $context
- * @param \Magento\Msrp\Model\Config $config
- * @param array $data
- */
- public function __construct(
- \Magento\Framework\View\Element\Template\Context $context,
- \Magento\Msrp\Model\Config $config,
- array $data = []
- ) {
- $this->config = $config;
- parent::__construct($context, $data);
- }
- /**
- * @return bool
- */
- public function isEnabled()
- {
- return $this->config->isEnabled();
- }
- /**
- * @return string
- */
- public function getExplanationMessage()
- {
- return $this->config->getExplanationMessage();
- }
- /**
- * @return string
- */
- public function getExplanationMessageWhatsThis()
- {
- return $this->config->getExplanationMessageWhatsThis();
- }
- }
|