Completed
Push — master ( f413dd...7f4a11 )
by Ivo
08:26
created

Content::getText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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
    public function setId($id)
45
    {
46
        $this->id = $id;
47
        
48
        return $this;
49
    }
50
    
51
    /**
52
     * @return int
53
     */
54
    public function getId()
55
    {
56
        return $this->id;
57
    }
58
59
    /**
60
     * @param string $name
61
     *
62
     * @return $this
63
     */
64
    public function setName($name)
65
    {
66
        $this->name = $name;
67
68
        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
    public function setLocale($locale)
85
    {
86
        $this->locale = $locale;
87
88
        return $this;
89
    }
90
91
    /**
92
     * @return string 
93
     */
94
    public function getLocale()
95
    {
96
        return $this->locale;
97
    }
98
99
    /**
100
     * @param string $text
101
     *
102
     * @return $this
103
     */
104
    public function setText($text)
105
    {
106
        $this->text = $text;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @return string 
113
     */
114
    public function getText()
115
    {
116
        return $this->text;
117
    }
118
}
119