This repository has been archived on 2022-06-10. You can view files and clone it, but cannot push or open issues or pull requests.
magentolym/Helper/Config.php

40 lines
747 B
PHP

<?php
/**
* Authors: Alex Gusev <alex@flancer64.com>
* Since: 2018
*/
namespace Oreolek\MagentoLym\Helper;
class Config
{
/** @var \Magento\Framework\App\Config\ScopeConfigInterface */
private $scopeConfig;
public function __construct(
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
) {
$this->scopeConfig = $scopeConfig;
}
/**
* @return int
*/
public function getDelay()
{
$result = (int)$this->scopeConfig->getValue('currency/lym/delay');
return $result;
}
/**
* @return int
*/
public function getTimeout()
{
$result = (int)$this->scopeConfig->getValue('currency/lym/timeout');
return $result;
}
}