ConfigurationHolder::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 3
dl 0
loc 5
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace OckCyp\CoversValidator\Model;
4
5
use PHPUnit\TextUI\Configuration\Configuration;
0 ignored issues
show
Bug introduced by
The type PHPUnit\TextUI\Configuration\Configuration 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...
6
use PHPUnit\Util\Configuration as PHPUnit8Configuration;
0 ignored issues
show
Bug introduced by
The type PHPUnit\Util\Configuration 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...
7
8
class ConfigurationHolder
9
{
10
    /**
11
     * @var PHPUnit8Configuration|Configuration
12
     */
13
    private $configuration;
14
15
    /**
16
     * @var string
17
     */
18
    private $filename;
19
20
    /**
21
     * @var string|null
22
     */
23
    private $bootstrap;
24
25
    /**
26
     * @param PHPUnit8Configuration|Configuration $configuration
27
     * @param string|null $bootstrap
28
     */
29
    public function __construct($configuration, string $filename, $bootstrap)
30
    {
31
        $this->configuration = $configuration;
32
        $this->filename = $filename;
33
        $this->bootstrap = $bootstrap;
34
    }
35
36
    public function getFilename(): string
37
    {
38
        return $this->filename;
39
    }
40
41
    public function getConfiguration()
42
    {
43
        return $this->configuration;
44
    }
45
46
    public function getBootstrap()
47
    {
48
        return $this->bootstrap;
49
    }
50
}
51