Passed
Pull Request — master (#1914)
by Janko
81:21
created

AbstractSettings   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getPath() 0 3 1
1
<?php
2
3
namespace Stu\Module\Config\Model;
4
5
abstract class AbstractSettings implements SettingsInterface
6
{
7 33
    public function __construct(
8
        protected ?SettingsInterface $parent,
9
        protected SettingsCoreInterface $settingsCore,
10
        protected SettingsCacheInterface $settingsCache
11
    ) {
12 33
    }
13
14 4
    public function getPath(): string
15
    {
16 4
        return $this->settingsCore->getPath();
17
    }
18
}
19