Completed
Push — master ( 513b51...624d3d )
by David
01:54
created

ConfigAbstract   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 25
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A pluginConfig() 0 4 1
1
<?php
2
/**
3
 * Tag Manager
4
 * Copyright (c) Webmatch GmbH
5
 *
6
 * This program is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 */
16
17
namespace WbmTagManager\Subscriber\Frontend;
18
19
abstract class ConfigAbstract
20
{
21
    /**
22
     * @var \Shopware_Components_Config
23
     */
24
    private $config;
25
26
    /**
27
     * @param \Shopware_Components_Config $config
28
     */
29
    public function __construct(\Shopware_Components_Config $config)
30
    {
31
        $this->config = $config;
32
    }
33
34
    /**
35
     * @param string $key
36
     *
37
     * @return mixed
38
     */
39
    protected function pluginConfig($key)
40
    {
41
        return $this->config->getByNamespace('WbmTagManager', $key);
42
    }
43
}
44