Notification   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 49
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 3
Bugs 0 Features 2
Metric Value
wmc 4
c 3
b 0
f 2
lcom 0
cbo 1
dl 0
loc 49
ccs 10
cts 10
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A setType() 0 5 1
A getMessage() 0 4 1
A setMessage() 0 5 1
1
<?php
2
namespace Wonnova\SDK\Model;
3
4
use JMS\Serializer\Annotation as JMS;
5
6
/**
7
 * Class Notification
8
 * @author Wonnova
9
 * @link http://www.wonnova.com
10
 */
11
class Notification extends AbstractModel
12
{
13
    /**
14
     * @var string
15
     * @JMS\Type("string")
16
     */
17
    private $type;
18
    /**
19
     * @var string
20
     * @JMS\Type("string")
21
     */
22
    private $message;
23
24
    /**
25
     * @return string
26
     */
27 2
    public function getType()
28
    {
29 2
        return $this->type;
30
    }
31
32
    /**
33
     * @param string $type
34
     * @return $this
35
     */
36 1
    public function setType($type)
37
    {
38 1
        $this->type = $type;
39 1
        return $this;
40
    }
41
42
    /**
43
     * @return string
44
     */
45 2
    public function getMessage()
46
    {
47 2
        return $this->message;
48
    }
49
50
    /**
51
     * @param string $message
52
     * @return $this
53
     */
54 1
    public function setMessage($message)
55
    {
56 1
        $this->message = $message;
57 1
        return $this;
58
    }
59
}
60