Device   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 123
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 10
lcom 0
cbo 0
dl 0
loc 123
rs 10
c 0
b 0
f 0

10 Methods

Rating   Name   Duplication   Size   Complexity  
A setDeviceId() 0 6 1
A getDeviceId() 0 4 1
A getKey() 0 4 1
A setKey() 0 6 1
A getSecret() 0 4 1
A setSecret() 0 6 1
A getName() 0 4 1
A setName() 0 6 1
A getAttributes() 0 4 1
A setAttributes() 0 6 1
1
<?php
2
3
namespace CultureKings\Afterpay\Model\InStore;
4
5
/**
6
 * Class Device
7
 * @package CultureKings\Afterpay\Model\InStore
8
 */
9
class Device
10
{
11
    /**
12
     * @var int
13
     */
14
    protected $deviceId;
15
    /**
16
     * @var string
17
     */
18
    protected $key;
19
20
    /**
21
     * @var string $secret
22
     */
23
    protected $secret;
24
    /**
25
     * @var string $name
26
     */
27
    protected $name;
28
    /**
29
     * @var array $attributes
30
     */
31
    protected $attributes;
32
33
    /**
34
     * @param int $deviceId
35
     * @return $this
36
     */
37
    public function setDeviceId($deviceId)
38
    {
39
        $this->deviceId = $deviceId;
40
41
        return $this;
42
    }
43
44
    /**
45
     * @return int
46
     */
47
    public function getDeviceId()
48
    {
49
        return $this->deviceId;
50
    }
51
52
    /**
53
     * @return string
54
     */
55
    public function getKey()
56
    {
57
        return $this->key;
58
    }
59
60
    /**
61
     * @param string $key
62
     *
63
     * @return Device
64
     */
65
    public function setKey($key)
66
    {
67
        $this->key = $key;
68
69
        return $this;
70
    }
71
72
    /**
73
     * @return string
74
     */
75
    public function getSecret()
76
    {
77
        return $this->secret;
78
    }
79
80
    /**
81
     * @param string $secret
82
     *
83
     * @return $this
84
     */
85
    public function setSecret($secret)
86
    {
87
        $this->secret = $secret;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @return string
94
     */
95
    public function getName()
96
    {
97
        return $this->name;
98
    }
99
100
    /**
101
     * @param string $name
102
     *
103
     * @return $this
104
     */
105
    public function setName($name)
106
    {
107
        $this->name = $name;
108
109
        return $this;
110
    }
111
112
    /**
113
     * @return array
114
     */
115
    public function getAttributes()
116
    {
117
        return $this->attributes;
118
    }
119
120
    /**
121
     * @param array $attributes
122
     *
123
     * @return $this
124
     */
125
    public function setAttributes($attributes)
126
    {
127
        $this->attributes = $attributes;
128
129
        return $this;
130
    }
131
}
132