Language   A
last analyzed

Complexity

Total Complexity 8

Size/Duplication

Total Lines 98
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 0
dl 0
loc 98
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getCode() 0 4 1
A setCode() 0 6 1
A getTitle() 0 4 1
A setTitle() 0 6 1
A isActive() 0 4 1
A setActive() 0 6 1
1
<?php
2
namespace OmnideskBundle\Model;
3
4
/**
5
 * Class Language
6
 * @package OmnideskBundle\Model
7
 */
8
class Language
9
{
10
    /**
11
     * @var int
12
     */
13
    private $id;
14
15
    /**
16
     * @var string
17
     */
18
    private $code;
19
20
    /**
21
     * @var string
22
     */
23
    private $title;
24
25
    /**
26
     * @var boolean
27
     */
28
    private $active;
29
30
    /**
31
     * @return int
32
     */
33
    public function getId()
34
    {
35
        return $this->id;
36
    }
37
38
    /**
39
     * @param int $id
40
     * @return $this
41
     */
42
    public function setId($id)
43
    {
44
        $this->id = $id;
45
46
        return $this;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getCode()
53
    {
54
        return $this->code;
55
    }
56
57
    /**
58
     * @param string $code
59
     * @return $this
60
     */
61
    public function setCode($code)
62
    {
63
        $this->code = $code;
64
65
        return $this;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getTitle()
72
    {
73
        return $this->title;
74
    }
75
76
    /**
77
     * @param string $title
78
     * @return $this
79
     */
80
    public function setTitle($title)
81
    {
82
        $this->title = $title;
83
84
        return $this;
85
    }
86
87
    /**
88
     * @return bool
89
     */
90
    public function isActive()
91
    {
92
        return $this->active;
93
    }
94
95
    /**
96
     * @param bool $active
97
     * @return $this
98
     */
99
    public function setActive($active)
100
    {
101
        $this->active = $active;
102
103
        return $this;
104
    }
105
}
106