Content::getText()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the Ivoaz ContentEditable bundle.
5
 *
6
 * (c) Ivo Azirjans <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE.
10
 */
11
12
namespace Ivoaz\Bundle\ContentEditableBundle\Model;
13
14
/**
15
 * @author Ivo Azirjans <[email protected]>
16
 */
17
class Content
18
{
19
    /**
20
     * @var int
21
     */
22
    private $id;
23
24
    /**
25
     * @var string
26
     */
27
    private $name;
28
29
    /**
30
     * @var string
31
     */
32
    private $locale;
33
34
    /**
35
     * @var string
36
     */
37
    private $text;
38
39
    /**
40
     * @param int $id
41
     * 
42
     * @return $this
43
     */
44 2
    public function setId($id)
45
    {
46 2
        $this->id = $id;
47
        
48 2
        return $this;
49
    }
50
    
51
    /**
52
     * @return int
53
     */
54 4
    public function getId()
55
    {
56 4
        return $this->id;
57
    }
58
59
    /**
60
     * @param string $name
61
     *
62
     * @return $this
63
     */
64 6
    public function setName($name)
65
    {
66 6
        $this->name = $name;
67
68 6
        return $this;
69
    }
70
71
    /**
72
     * @return string 
73
     */
74
    public function getName()
75
    {
76
        return $this->name;
77
    }
78
79
    /**
80
     * @param string $locale
81
     *
82
     * @return $this
83
     */
84 6
    public function setLocale($locale)
85
    {
86 6
        $this->locale = $locale;
87
88 6
        return $this;
89
    }
90
91
    /**
92
     * @return string 
93
     */
94 1
    public function getLocale()
95
    {
96 1
        return $this->locale;
97
    }
98
99
    /**
100
     * @param string $text
101
     *
102
     * @return $this
103
     */
104 8
    public function setText($text)
105
    {
106 8
        $this->text = $text;
107
108 8
        return $this;
109
    }
110
111
    /**
112
     * @return string 
113
     */
114 5
    public function getText()
115
    {
116 5
        return $this->text;
117
    }
118
}
119