Achievement::setTitle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * Achievement
4
 *
5
 * @category  AxalianAchievements\Entity
6
 * @package   AxalianAchievements\Entity
7
 * @author    Michel Maas <[email protected]>
8
 */
9
10
namespace AxalianAchievements\Entity;
11
12
class Achievement extends AbstractAchievementEntity
13
{
14
    /**
15
     * @var Category
16
     */
17
    protected $category;
18
19
    /**
20
     * @var string
21
     */
22
    protected $title;
23
24
    /**
25
     * @var string
26
     */
27
    protected $description;
28
29
    /**
30
     * @var string
31
     */
32
    protected $image;
33
34
    /**
35
     * @var int
36
     */
37
    protected $points;
38
39
    /**
40
     * @var string
41
     */
42
    protected $name;
43
44
    /**
45
     * @return \AxalianAchievements\Entity\Category
46
     */
47
    public function getCategory()
48
    {
49
        return $this->category;
50
    }
51
52
    /**
53
     * @param \AxalianAchievements\Entity\Category $category
54
     * @return self
55
     */
56
    public function setCategory($category)
57
    {
58
        $this->category = $category;
59
60
        return $this;
61
    }
62
63
    /**
64
     * @return string
65
     */
66
    public function getTitle()
67
    {
68
        return $this->title;
69
    }
70
71
    /**
72
     * @param string $title
73
     * @return self
74
     */
75
    public function setTitle($title)
76
    {
77
        $this->title = $title;
78
79
        return $this;
80
    }
81
82
    /**
83
     * @return string
84
     */
85
    public function getDescription()
86
    {
87
        return $this->description;
88
    }
89
90
    /**
91
     * @return string
92
     */
93
    public function getImage()
94
    {
95
        return $this->image;
96
    }
97
98
    /**
99
     * @param string $image
100
     * @return self
101
     */
102
    public function setImage($image)
103
    {
104
        $this->image = $image;
105
106
        return $this;
107
    }
108
109
    /**
110
     * @return int
111
     */
112
    public function getPoints()
113
    {
114
        return $this->points;
115
    }
116
117
    /**
118
     * @param int $points
119
     * @return self
120
     */
121
    public function setPoints($points)
122
    {
123
        $this->points = $points;
124
125
        return $this;
126
    }
127
128
    /**
129
     * @return string
130
     */
131
    public function getName()
132
    {
133
        return $this->name;
134
    }
135
136
    /**
137
     * @param string $name
138
     * @return self
139
     */
140
    public function setName($name)
141
    {
142
        $this->name = $name;
143
144
        return $this;
145
    }
146
147
    /**
148
     * @param string $description
149
     * @return Achievement
150
     */
151
    public function setDescription($description)
152
    {
153
        $this->description = $description;
154
155
        return $this;
156
    }
157
}
158