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

Repository   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setPath() 0 5 1
A getPath() 0 3 1
A getVersion() 0 3 1
A setVersion() 0 5 1
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