RoadmapDto::setName()   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 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\AnthillBundle\Dto\Vacancy;
17
18
use Veslo\AnthillBundle\Vacancy\Normalizer\RoadmapDtoDenormalizer;
19
20
/**
21
 * Context of roadmap by which the vacancy was found
22
 *
23
 * @see RoadmapDtoDenormalizer
24
 */
25
class RoadmapDto
26
{
27
    /**
28
     * Property with roadmap name
29
     *
30
     * @const string
31
     */
32
    public const PROPERTY_NAME = 'name';
33
34
    /**
35
     * Roadmap name
36
     *
37
     * @var string
38
     */
39
    private $name;
40
41
    /**
42
     * Sets roadmap name
43
     *
44
     * @param string $name Roadmap name
45
     *
46
     * @return void
47
     */
48
    public function setName(string $name): void
49
    {
50
        $this->name = $name;
51
    }
52
53
    /**
54
     * Returns roadmap name
55
     *
56
     * @return string|null
57
     */
58
    public function getName(): ?string
59
    {
60
        return $this->name;
61
    }
62
}
63