Passed
Push — master ( 5d5c93...4556a9 )
by Daniel
02:35
created

Repository::setUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Dandelion\Configuration;
6
7
class Repository
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $path;
13
14
    /**
15
     * @var string
16
     */
17
    protected $version;
18
19
    /**
20
     * @return string
21
     */
22
    public function getPath(): string
23
    {
24
        return $this->path;
25
    }
26
27
    /**
28
     * @param string $path
29
     *
30
     * @return \Dandelion\Configuration\Repository
31
     */
32
    public function setPath(string $path): Repository
33
    {
34
        $this->path = $path;
35
36
        return $this;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getVersion(): string
43
    {
44
        return $this->version;
45
    }
46
47
    /**
48
     * @param string $version
49
     *
50
     * @return \Dandelion\Configuration\Repository
51
     */
52
    public function setVersion(string $version): Repository
53
    {
54
        $this->version = $version;
55
56
        return $this;
57
    }
58
}
59