Config   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfig() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace Pagantis\Pagantis\Helper;
4
5
/**
6
 * Class Config
7
 * @package Pagantis\Pagantis\Helper
8
 */
9
class Config
10
{
11
    /**
12
     * @var \Magento\Framework\App\Config\ScopeConfigInterface
13
     */
14
    protected $scopeConfig;
15
16
    /**
17
     * Config constructor.
18
     *
19
     * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
20
     */
21
    public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig)
22
    {
23
        $this->scopeConfig = $scopeConfig;
24
    }
25
26
    /**
27
     * @return mixed
28
     */
29
    public function getConfig()
30
    {
31
        return $this->scopeConfig->getValue('payment/pagantis');
32
    }
33
}