ModuleExampleFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createDomainClass() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace GacelaTest\Benchmark\ModuleExample;
6
7
use Gacela\Framework\AbstractFactory;
8
use GacelaTest\Benchmark\ModuleExample\Domain\DomainClass;
9
10
/**
11
 * @extends AbstractFactory<ModuleExampleConfig>
12
 */
13
final class ModuleExampleFactory extends AbstractFactory
14
{
15
    public function createDomainClass(): DomainClass
16
    {
17
        $configValues = $this->getConfig()->getValues();
0 ignored issues
show
Bug introduced by
The method getValues() does not exist on Gacela\Framework\AbstractConfig. It seems like you code against a sub-type of Gacela\Framework\AbstractConfig such as anonymous//tests/Benchmark/GacelaGlobalBench.php$4 or anonymous//tests/Integra...nymousClassesTest.php$1 or GacelaTest\Benchmark\Mod...ple\ModuleExampleConfig. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

17
        $configValues = $this->getConfig()->/** @scrutinizer ignore-call */ getValues();
Loading history...
18
19
        /** @var string $valueFromAbstractProvider */
20
        $valueFromAbstractProvider = $this->getProvidedDependency('key');
21
22
        return new DomainClass($configValues, $valueFromAbstractProvider);
23
    }
24
}
25