Completed
Pull Request — master (#27)
by Oliver
01:17
created

ConfigurationHolder   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 44
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getFilename() 0 4 1
A getConfiguration() 0 4 1
A getBootstrap() 0 4 1
1
<?php
2
3
namespace OckCyp\CoversValidator\Model;
4
5
use PHPUnit\Util\Configuration as PHPUnit8Configuration;
6
use PHPUnit\TextUI\Configuration\Configuration;
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 $filename
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