40 lines
747 B
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;
|
|
}
|
|
}
|