Passed
Push — master ( f50aa1...d726cb )
by Nico
57:47 queued 28:23
created

AbstractSettings   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 50%

Importance

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

2 Methods

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