Completed
Push — master ( a41bca...d54f6c )
by Giancarlos
02:37
created

CdrResponse   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 94
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 55%

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 94
ccs 11
cts 20
cp 0.55
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 5 1
A getCode() 0 4 1
A setCode() 0 5 1
A getDescription() 0 4 1
A setDescription() 0 5 1
A getNote() 0 4 1
A setNote() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Giansalex
5
 * Date: 21/07/2017
6
 * Time: 23:12
7
 */
8
9
namespace Greenter\Model\Response;
10
11
/**
12
 * Class CdrResponse
13
 * @package Greenter\Model\Response
14
 */
15
class CdrResponse
16
{
17
    /**
18
     * @var string
19
     */
20
    protected $id;
21
22
    /**
23
     * @var string
24
     */
25
    protected $code;
26
27
    /**
28
     * @var string
29
     */
30
    protected $description;
31
32
    /**
33
     * @var string[]
34
     */
35
    protected $note;
36
37
    /**
38
     * @return string
39
     */
40
    public function getId()
41
    {
42
        return $this->id;
43
    }
44
45
    /**
46
     * @param string $id
47
     * @return CdrResponse
48
     */
49 2
    public function setId($id)
50
    {
51 2
        $this->id = $id;
52 2
        return $this;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getCode()
59
    {
60
        return $this->code;
61
    }
62
63
    /**
64
     * @param string $code
65
     * @return CdrResponse
66
     */
67 2
    public function setCode($code)
68
    {
69 2
        $this->code = $code;
70 2
        return $this;
71
    }
72
73
    /**
74
     * @return string
75
     */
76 2
    public function getDescription()
77
    {
78 2
        return $this->description;
79
    }
80
81
    /**
82
     * @param string $description
83
     * @return CdrResponse
84
     */
85 2
    public function setDescription($description)
86
    {
87 2
        $this->description = $description;
88 2
        return $this;
89
    }
90
91
    /**
92
     * @return string[]
93
     */
94
    public function getNote()
95
    {
96
        return $this->note;
97
    }
98
99
    /**
100
     * @param string[] $note
101
     * @return CdrResponse
102
     */
103
    public function setNote($note)
104
    {
105
        $this->note = $note;
106
        return $this;
107
    }
108
}