Scenario   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 0
Metric Value
wmc 4
c 3
b 0
f 0
lcom 0
cbo 1
dl 0
loc 49
ccs 10
cts 10
cp 1
rs 10

4 Methods

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