Passed
Push — master ( 676110...9cfebc )
by Daniel
02:12
created

Repository::setVersion()   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
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
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 $url;
18
19
    /**
20
     * @var string
21
     */
22
    protected $version;
23
24
    /**
25
     * @return string
26
     */
27
    public function getPath(): string
28
    {
29
        return $this->path;
30
    }
31
32
    /**
33
     * @param string $path
34
     *
35
     * @return \Dandelion\Configuration\Repository
36
     */
37
    public function setPath(string $path): Repository
38
    {
39
        $this->path = $path;
40
41
        return $this;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getUrl(): string
48
    {
49
        return $this->url;
50
    }
51
52
    /**
53
     * @param string $url
54
     *
55
     * @return \Dandelion\Configuration\Repository
56
     */
57
    public function setUrl(string $url): Repository
58
    {
59
        $this->url = $url;
60
61
        return $this;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getVersion(): string
68
    {
69
        return $this->version;
70
    }
71
72
    /**
73
     * @param string $version
74
     *
75
     * @return \Dandelion\Configuration\Repository
76
     */
77
    public function setVersion(string $version): Repository
78
    {
79
        $this->version = $version;
80
81
        return $this;
82
    }
83
}
84