Passed
Push — master ( 7cec3c...dccb02 )
by Mike
03:24
created

ConfiguratorBusinessFactory::createConfigurator()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php declare(strict_types=1);
2
3
4
namespace Xervice\Configurator\Business;
5
6
7
8
use Xervice\Configurator\Business\Model\Engine\Configurator;
9
use Xervice\Configurator\Business\Model\Engine\ConfiguratorInterface;
10
use Xervice\Configurator\Business\Model\Step\StepCollection;
11
use Xervice\Core\Business\Model\Factory\AbstractBusinessFactory;
12
13
class ConfiguratorBusinessFactory extends AbstractBusinessFactory
14
{
15
    /**
16
     * @param \Xervice\Configurator\Business\Step\StepCollection $stepCollection
0 ignored issues
show
Bug introduced by
The type Xervice\Configurator\Business\Step\StepCollection was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
17
     *
18
     * @return \Xervice\Configurator\Business\Engine\ConfiguratorInterface
0 ignored issues
show
Bug introduced by
The type Xervice\Configurator\Bus...e\ConfiguratorInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
19
     */
20 2
    public function createConfigurator(StepCollection $stepCollection): ConfiguratorInterface
21
    {
22 2
        return new Configurator($stepCollection);
0 ignored issues
show
Bug Best Practice introduced by
The expression return new Xervice\Confi...urator($stepCollection) returns the type Xervice\Configurator\Bus...del\Engine\Configurator which is incompatible with the documented return type Xervice\Configurator\Bus...e\ConfiguratorInterface.
Loading history...
23
    }
24
}