PackageItem::getVersion()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Buttress\Concrete\Service\Package;
4
5
class PackageItem
6
{
7
8
    /** @var string */
9
    private $handle;
10
11
    /** @var bool */
12
    private $installed;
13
14
    /** @var string */
15
    private $version;
16
17
    /** @var string */
18
    private $installedVersion;
19
20
    /**
21
     * @return string
22
     */
23
    public function getHandle()
24
    {
25
        return $this->handle;
26
    }
27
28
    /**
29
     * @param string $handle
30
     * @return PackageItem
31
     */
32
    public function setHandle($handle)
33
    {
34
        $this->handle = $handle;
35
        return $this;
36
    }
37
38
    /**
39
     * @return bool
40
     */
41
    public function isInstalled()
42
    {
43
        return $this->installed;
44
    }
45
46
    /**
47
     * @param bool $installed
48
     * @return PackageItem
49
     */
50
    public function setInstalled($installed)
51
    {
52
        $this->installed = $installed;
53
        return $this;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getVersion()
60
    {
61
        return $this->version;
62
    }
63
64
    /**
65
     * @param string $version
66
     * @return PackageItem
67
     */
68
    public function setVersion($version)
69
    {
70
        $this->version = $version;
71
        return $this;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function getInstalledVersion()
78
    {
79
        return $this->installedVersion;
80
    }
81
82
    /**
83
     * @param string $installedVersion
84
     * @return PackageItem
85
     */
86
    public function setInstalledVersion($installedVersion)
87
    {
88
        $this->installedVersion = $installedVersion;
89
        return $this;
90
    }
91
}
92