ConfigurationDto   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setKey() 0 3 1
A getKey() 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\Roadmap;
17
18
use Veslo\AnthillBundle\Vacancy\Normalizer\Roadmap\ConfigurationDtoDenormalizer;
19
20
/**
21
 * Context of configuration for search algorithm used by roadmap
22
 *
23
 * @see ConfigurationDtoDenormalizer
24
 */
25
class ConfigurationDto
26
{
27
    /**
28
     * Property for configuration key
29
     *
30
     * @const string
31
     */
32
    public const PROPERTY_KEY = 'key';
33
34
    /**
35
     * Configuration key
36
     *
37
     * @var string
38
     */
39
    private $key;
40
41
    /**
42
     * Sets configuration key
43
     *
44
     * @param string $key Configuration key
45
     *
46
     * @return void
47
     */
48
    public function setKey(string $key): void
49
    {
50
        $this->key = $key;
51
    }
52
53
    /**
54
     * Returns configuration key
55
     *
56
     * @return string|null
57
     */
58
    public function getKey(): ?string
59
    {
60
        return $this->key;
61
    }
62
}
63