Passed
Push — master ( f76f85...e071c0 )
by John
02:27
created

Configuration::getPathToSplitshLite()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Dandelion\Configuration;
6
7
use ArrayObject;
8
9
class Configuration
10
{
11
    /**
12
     * @var \ArrayObject<string,\Dandelion\Configuration\Repository>
13
     */
14
    protected $repositories;
15
16
    /**
17
     * @var string
18
     */
19
    protected $pathToTempDirectory;
20
21
    /**
22
     * @var string|null
23
     */
24
    protected $pathToSplitshLite;
25
26
    /**
27
     * @return \ArrayObject<string,\Dandelion\Configuration\Repository>
28
     */
29
    public function getRepositories(): ArrayObject
30
    {
31
        return $this->repositories;
32
    }
33
34
    /**
35
     * @param \Dandelion\Configuration\Repository[] $repositories
36
     *
37
     * @return \Dandelion\Configuration\Configuration
38
     */
39
    public function setRepositories(array $repositories): Configuration
40
    {
41
        $this->repositories = new ArrayObject($repositories);
42
43
        return $this;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getPathToTempDirectory(): string
50
    {
51
        return $this->pathToTempDirectory;
52
    }
53
54
    /**
55
     * @param string $pathToTempDirectory
56
     *
57
     * @return \Dandelion\Configuration\Configuration
58
     */
59
    public function setPathToTempDirectory(string $pathToTempDirectory): Configuration
60
    {
61
        $this->pathToTempDirectory = $pathToTempDirectory;
62
63
        return $this;
64
    }
65
66
    /**
67
     * @return string|null
68
     */
69
    public function getPathToSplitshLite(): ?string
70
    {
71
        return $this->pathToSplitshLite;
72
    }
73
74
    /**
75
     * @param string|null $pathToSplitshLite
76
     *
77
     * @return \Dandelion\Configuration\Configuration
78
     */
79
    public function setPathToSplitshLite(?string $pathToSplitshLite): Configuration
80
    {
81
        $this->pathToSplitshLite = $pathToSplitshLite;
82
83
        return $this;
84
    }
85
}
86