StrategyDto   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 4
c 1
b 0
f 0
dl 0
loc 29
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 3 1
A setName() 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\AnthillBundle\Dto\Vacancy\Scanner;
17
18
/**
19
 * Context of parsing algorithm used by scanner
20
 */
21
class StrategyDto
22
{
23
    /**
24
     * Parsing algorithm name
25
     *
26
     * @var string
27
     */
28
    private $name;
29
30
    /**
31
     * Sets name for parsing algorithm used by scanner
32
     *
33
     * @param string $name Parsing algorithm name
34
     *
35
     * @return void
36
     */
37
    public function setName(string $name): void
38
    {
39
        $this->name = $name;
40
    }
41
42
    /**
43
     * Returns name of parsing algorithm used by scanner
44
     *
45
     * @return string|null
46
     */
47
    public function getName(): ?string
48
    {
49
        return $this->name;
50
    }
51
}
52