Passed
Pull Request — master (#1839)
by Nico
51:47 queued 25:19
created

AbstractSettings::getConfigArray()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 18
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 4.0218

Importance

Changes 0
Metric Value
cc 4
eloc 8
nc 4
nop 2
dl 0
loc 18
ccs 8
cts 9
cp 0.8889
crap 4.0218
rs 10
c 0
b 0
f 0
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