Addon   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 63
ccs 18
cts 18
cp 1
rs 10
c 0
b 0
f 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getTTL() 0 3 1
A getToken() 0 3 1
A setToken() 0 3 1
A setTarget() 0 3 1
A setTTL() 0 3 1
A getTarget() 0 3 1
A toJson() 0 5 1
1
<?php
2
3
namespace SolutionDrive\HipchatAPIv2Client\Model;
4
5
class Addon implements AddonInterface
6
{
7
    private $target;
8
    private $ttl;
9
    private $token;
10
11
    /**
12
     * @inheritdoc
13
     */
14 1
    public function toJson()
15
    {
16
        return [
17 1
            'target' => $this->getTarget(),
18 1
            'ttl'    => $this->getTTL(),
19
        ];
20
    }
21
22
    /**
23
     * @inheritdoc
24
     */
25 2
    public function setTarget($target)
26
    {
27 2
        $this->target = $target;
28 2
    }
29
30
    /**
31
     * @inheritdoc
32
     */
33 2
    public function setTTL($ttl)
34
    {
35 2
        $this->ttl = $ttl;
36 2
    }
37
38
    /**
39
     * @inheritdoc
40
     */
41 1
    public function setToken($token)
42
    {
43 1
        $this->token = $token;
44 1
    }
45
46
    /**
47
     * @inheritdoc
48
     */
49 2
    public function getTarget()
50
    {
51 2
        return $this->target;
52
    }
53
54
    /**
55
     * @inheritdoc
56
     */
57 2
    public function getTTL()
58
    {
59 2
        return $this->ttl;
60
    }
61
62
    /**
63
     * @inheritdoc
64
     */
65 1
    public function getToken()
66
    {
67 1
        return $this->token;
68
    }
69
}
70