AbstractModule::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 2
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 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