Completed
Push — master ( 5f68f7...766e2f )
by Alexander
01:24
created

Device   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 64
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 64
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getBoundBy() 0 4 1
A setBoundBy() 0 5 1
A getSysFSPath() 0 4 1
A setSysFSPath() 0 5 1
A getWants() 0 4 1
A setWants() 0 5 1
1
<?php
2
3
namespace CyberLine\SystemdState\Types;
4
5
class Device extends AbstractType
6
{
7
    /** @var array */
8
    protected $BoundBy = [];
9
10
    /** @var string */
11
    protected $SysFSPath;
12
13
    protected $Wants = [];
14
15
    /**
16
     * @return array
17
     */
18
    public function getBoundBy(): array
19
    {
20
        return $this->BoundBy;
21
    }
22
23
    /**
24
     * @param array $BoundBy
25
     * @return Device
26
     */
27
    public function setBoundBy(array $BoundBy): Device
28
    {
29
        $this->BoundBy = $BoundBy;
30
        return $this;
31
    }
32
33
    /**
34
     * @return string
35
     */
36
    public function getSysFSPath(): string
37
    {
38
        return $this->SysFSPath;
39
    }
40
41
    /**
42
     * @param string $SysFSPath
43
     * @return Device
44
     */
45
    public function setSysFSPath(string $SysFSPath): Device
46
    {
47
        $this->SysFSPath = $SysFSPath;
48
        return $this;
49
    }
50
51
    /**
52
     * @return array
53
     */
54
    public function getWants(): array
55
    {
56
        return $this->Wants;
57
    }
58
59
    /**
60
     * @param array $Wants
61
     * @return Device
62
     */
63
    public function setWants(array $Wants): Device
64
    {
65
        $this->Wants = $Wants;
66
        return $this;
67
    }
68
}
69