ScannerDto::setName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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
/**
19
 * Context of scanner for vacancy URL
20
 */
21
class ScannerDto
22
{
23
    /**
24
     * Scanner name
25
     *
26
     * @var string
27
     */
28
    private $name;
29
30
    /**
31
     * Sets scanner name
32
     *
33
     * @param string $name Scanner name
34
     *
35
     * @return void
36
     */
37
    public function setName(string $name): void
38
    {
39
        $this->name = $name;
40
    }
41
42
    /**
43
     * Returns scanner name
44
     *
45
     * @return string|null
46
     */
47
    public function getName(): ?string
48
    {
49
        return $this->name;
50
    }
51
}
52