Notification::setType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 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