ConfigurationHolder   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getFilename() 0 3 1
A __construct() 0 5 1
A getBootstrap() 0 3 1
A getConfiguration() 0 3 1
1
<?php
2
3
namespace OckCyp\CoversValidator\Model;
4
5
use PHPUnit\TextUI\Configuration\Configuration as PHPUnit9Configuration;
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\TextUI\XmlConfiguration\Configuration as PHPUnit10Configuration;
7
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...
8
9
class ConfigurationHolder
10
{
11
    /**
12
     * @var PHPUnit8Configuration|PHPUnit9Configuration|PHPUnit10Configuration
13
     */
14
    private $configuration;
15
16
    /**
17
     * @var string
18
     */
19
    private $filename;
20
21
    /**
22
     * @var string|null
23
     */
24
    private $bootstrap;
25
26
    /**
27
     * @param PHPUnit8Configuration|PHPUnit9Configuration|PHPUnit10Configuration $configuration
28
     * @param string|null $bootstrap
29
     */
30
    public function __construct($configuration, string $filename, $bootstrap)
31
    {
32
        $this->configuration = $configuration;
33
        $this->filename = $filename;
34
        $this->bootstrap = $bootstrap;
35
    }
36
37
    public function getFilename(): string
38
    {
39
        return $this->filename;
40
    }
41
42
    public function getConfiguration()
43
    {
44
        return $this->configuration;
45
    }
46
47
    public function getBootstrap()
48
    {
49
        return $this->bootstrap;
50
    }
51
}
52