QuestStep   A
last analyzed

Complexity

Total Complexity 10

Size/Duplication

Total Lines 122
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

10 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A setType() 0 5 1
A getCode() 0 4 1
A setCode() 0 5 1
A getName() 0 4 1
A setName() 0 5 1
A getDescription() 0 4 1
A setDescription() 0 5 1
A isCompleted() 0 4 1
A setCompleted() 0 5 1
1
<?php
2
namespace Wonnova\SDK\Model;
3
4
use JMS\Serializer\Annotation as JMS;
5
6
/**
7
 * Class QuestStep
8
 * @author Wonnova
9
 * @link http://www.wonnova.com
10
 */
11
class QuestStep extends AbstractModel
12
{
13
    const TYPE_BADGE = 'badge';
14
    const TYPE_QUEST = 'quest';
15
    const TYPE_ACTION = 'action';
16
17
    /**
18
     * @var string
19
     * @JMS\Type("string")
20
     */
21
    private $type;
22
    /**
23
     * @var string
24
     * @JMS\Type("string")
25
     */
26
    private $code;
27
    /**
28
     * @var string
29
     * @JMS\Type("string")
30
     */
31
    private $name;
32
    /**
33
     * @var string
34
     * @JMS\Type("string")
35
     */
36
    private $description;
37
    /**
38
     * @var boolean
39
     * @JMS\Type("boolean")
40
     */
41
    private $completed;
42
43
    /**
44
     * @return string
45
     */
46 3
    public function getType()
47
    {
48 3
        return $this->type;
49
    }
50
51
    /**
52
     * @param string $type
53
     * @return $this
54
     */
55 1
    public function setType($type)
56
    {
57 1
        $this->type = $type;
58 1
        return $this;
59
    }
60
61
    /**
62
     * @return string
63
     */
64 3
    public function getCode()
65
    {
66 3
        return $this->code;
67
    }
68
69
    /**
70
     * @param string $code
71
     * @return $this
72
     */
73 1
    public function setCode($code)
74
    {
75 1
        $this->code = $code;
76 1
        return $this;
77
    }
78
79
    /**
80
     * @return string
81
     */
82 2
    public function getName()
83
    {
84 2
        return $this->name;
85
    }
86
87
    /**
88
     * @param string $name
89
     * @return $this
90
     */
91 1
    public function setName($name)
92
    {
93 1
        $this->name = $name;
94 1
        return $this;
95
    }
96
97
    /**
98
     * @return string
99
     */
100 2
    public function getDescription()
101
    {
102 2
        return $this->description;
103
    }
104
105
    /**
106
     * @param string $description
107
     * @return $this
108
     */
109 1
    public function setDescription($description)
110
    {
111 1
        $this->description = $description;
112 1
        return $this;
113
    }
114
115
    /**
116
     * @return boolean
117
     */
118 3
    public function isCompleted()
119
    {
120 3
        return $this->completed;
121
    }
122
123
    /**
124
     * @param mixed $completed
125
     * @return $this
126
     */
127 1
    public function setCompleted($completed)
128
    {
129 1
        $this->completed = $completed;
130 1
        return $this;
131
    }
132
}
133