GroupDto::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
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\Tag;
17
18
/**
19
 * Context of vacancy tags group data
20
 */
21
class GroupDto
22
{
23
    /**
24
     * Vacancy tags group name
25
     *
26
     * @var string
27
     */
28
    private $name;
29
30
    /**
31
     * Tags group description
32
     *
33
     * @var string|null
34
     */
35
    private $description;
36
37
    /**
38
     * Tags group color
39
     *
40
     * @var string|null
41
     */
42
    private $color;
43
44
    /**
45
     * Returns vacancy tags group name
46
     *
47
     * @return string
48
     */
49
    public function getName(): string
50
    {
51
        return $this->name;
52
    }
53
54
    /**
55
     * Sets vacancy tags group name
56
     *
57
     * @param string $name Tags group name
58
     *
59
     * @return void
60
     */
61
    public function setName(string $name): void
62
    {
63
        $this->name = $name;
64
    }
65
66
    /**
67
     * Returns tags group description
68
     *
69
     * @return string|null
70
     */
71
    public function getDescription(): ?string
72
    {
73
        return $this->description;
74
    }
75
76
    /**
77
     * Sets tags group description
78
     *
79
     * @param string $description Tags group description
80
     *
81
     * @return void
82
     */
83
    public function setDescription(string $description): void
84
    {
85
        $this->description = $description;
86
    }
87
88
    /**
89
     * Returns tags group color
90
     *
91
     * @return string|null
92
     */
93
    public function getColor(): ?string
94
    {
95
        return $this->color;
96
    }
97
98
    /**
99
     * Sets tags group color
100
     *
101
     * @param string $color Tags group color
102
     *
103
     * @return void
104
     */
105
    public function setColor(string $color): void
106
    {
107
        $this->color = $color;
108
    }
109
}
110