TagDto   A
last analyzed

Complexity

Total Complexity 12

Size/Duplication

Total Lines 174
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 12
eloc 19
c 1
b 0
f 0
dl 0
loc 174
rs 10

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 3 1
A setName() 0 3 1
A getGroup() 0 3 1
A getColor() 0 3 1
A getTitle() 0 3 1
A setColor() 0 3 1
A getImageUrl() 0 3 1
A setGroup() 0 3 1
A setDescription() 0 3 1
A getName() 0 3 1
A setTitle() 0 3 1
A setImageUrl() 0 3 1
1
<?php
2
3
/*
4
 * This file is part of the Veslo project <https://github.com/symfony-doge/veslo>.
5
 *
6
 * (C) 2019 Pavel Petrov <[email protected]>.
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * @license https://opensource.org/licenses/GPL-3.0 GPL-3.0
12
 */
13
14
declare(strict_types=1);
15
16
namespace Veslo\SanityBundle\Dto\Vacancy;
17
18
use Veslo\SanityBundle\Dto\Vacancy\Tag\GroupDto;
19
20
/**
21
 * Context of vacancy tag data
22
 */
23
class TagDto
24
{
25
    /**
26
     * Vacancy tag name
27
     *
28
     * @var string
29
     */
30
    private $name;
31
32
    /**
33
     * Vacancy tags group
34
     *
35
     * @var GroupDto
36
     */
37
    private $group;
38
39
    /**
40
     * Vacancy tag title
41
     *
42
     * @var string
43
     */
44
    private $title;
45
46
    /**
47
     * Vacancy tag description
48
     *
49
     * @var string
50
     */
51
    private $description;
52
53
    /**
54
     * Vacancy tag color
55
     *
56
     * @var string
57
     */
58
    private $color;
59
60
    /**
61
     * Vacancy tag image URL
62
     *
63
     * @var string
64
     */
65
    private $imageUrl;
66
67
    /**
68
     * Returns vacancy tag name
69
     *
70
     * @return string
71
     */
72
    public function getName(): string
73
    {
74
        return $this->name;
75
    }
76
77
    /**
78
     * Sets vacancy tag name
79
     *
80
     * @param string $name Vacancy tag name
81
     *
82
     * @return void
83
     */
84
    public function setName(string $name): void
85
    {
86
        $this->name = $name;
87
    }
88
89
    /**
90
     * Returns vacancy tags group
91
     *
92
     * @return GroupDto
93
     */
94
    public function getGroup(): GroupDto
95
    {
96
        return $this->group;
97
    }
98
99
    /**
100
     * Sets vacancy tags group
101
     *
102
     * @param GroupDto $group Tags group
103
     *
104
     * @return void
105
     */
106
    public function setGroup(GroupDto $group): void
107
    {
108
        $this->group = $group;
109
    }
110
111
    /**
112
     * Returns vacancy tag title
113
     *
114
     * @return string
115
     */
116
    public function getTitle(): string
117
    {
118
        return $this->title;
119
    }
120
121
    /**
122
     * Sets vacancy tag title
123
     *
124
     * @param string $title Vacancy tag title
125
     *
126
     * @return void
127
     */
128
    public function setTitle(string $title): void
129
    {
130
        $this->title = $title;
131
    }
132
133
    /**
134
     * Returns vacancy tag description
135
     *
136
     * @return string
137
     */
138
    public function getDescription(): string
139
    {
140
        return $this->description;
141
    }
142
143
    /**
144
     * Sets vacancy tag description
145
     *
146
     * @param string $description Vacancy tag description
147
     *
148
     * @return void
149
     */
150
    public function setDescription(string $description): void
151
    {
152
        $this->description = $description;
153
    }
154
155
    /**
156
     * Returns vacancy tag color
157
     *
158
     * @return string
159
     */
160
    public function getColor(): string
161
    {
162
        return $this->color;
163
    }
164
165
    /**
166
     * Sets vacancy tag color
167
     *
168
     * @param string $color Vacancy tag color
169
     *
170
     * @return void
171
     */
172
    public function setColor(string $color): void
173
    {
174
        $this->color = $color;
175
    }
176
177
    /**
178
     * Returns vacancy tag image URL
179
     *
180
     * @return string
181
     */
182
    public function getImageUrl(): string
183
    {
184
        return $this->imageUrl;
185
    }
186
187
    /**
188
     * Sets vacancy tag image URL
189
     *
190
     * @param string $imageUrl Vacancy tag image URL
191
     *
192
     * @return void
193
     */
194
    public function setImageUrl(string $imageUrl): void
195
    {
196
        $this->imageUrl = $imageUrl;
197
    }
198
}
199