PackageItem   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 87
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 87
ccs 0
cts 36
cp 0
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getHandle() 0 4 1
A setHandle() 0 5 1
A isInstalled() 0 4 1
A setInstalled() 0 5 1
A getVersion() 0 4 1
A setVersion() 0 5 1
A getInstalledVersion() 0 4 1
A setInstalledVersion() 0 5 1
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