AbstractModule   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A config() 0 2 1
1
<?php declare(strict_types=1);
2
3
namespace Goose\Modules;
4
5
use Goose\Configuration;
6
7
/**
8
 * Abstract Formatter
9
 *
10
 * @package Goose\Modules
11
 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
12
 */
13
abstract class AbstractModule {
14
    /** @var Configuration */
15
    protected $config;
16
17
    /**
18
     * @param Configuration $config
19
     */
20
    public function __construct(Configuration $config) {
21
        $this->config = $config;
22
    }
23
24
    /**
25
     * @return Configuration
26
     */
27
    public function config(): Configuration {
28
        return $this->config;
29
    }
30
}
31