LocationDto::setVacancyUrl()   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 vacancy location from internet
20
 */
21
class LocationDto
22
{
23
    /**
24
     * Vacancy URL for parsing
25
     * Response format depends on search strategy
26
     *
27
     * @var string
28
     */
29
    private $vacancyUrl;
30
31
    /**
32
     * Context of roadmap by which the vacancy was found
33
     *
34
     * @var RoadmapDto
35
     */
36
    private $roadmap;
37
38
    /**
39
     * Returns vacancy URL
40
     *
41
     * @return string|null
42
     */
43
    public function getVacancyUrl(): ?string
44
    {
45
        return $this->vacancyUrl;
46
    }
47
48
    /**
49
     * Sets vacancy URL
50
     *
51
     * @param string $vacancyUrl Vacancy URL for parsing
52
     *
53
     * @return void
54
     */
55
    public function setVacancyUrl(string $vacancyUrl): void
56
    {
57
        $this->vacancyUrl = $vacancyUrl;
58
    }
59
60
    /**
61
     * Returns context of roadmap by which the vacancy was found
62
     *
63
     * @return RoadmapDto|null
64
     */
65
    public function getRoadmap(): ?RoadmapDto
66
    {
67
        return $this->roadmap;
68
    }
69
70
    /**
71
     * Sets context of roadmap by which the vacancy was found
72
     *
73
     * @param RoadmapDto $roadmap Context of roadmap by which the vacancy was found
74
     *
75
     * @return void
76
     */
77
    public function setRoadmap(RoadmapDto $roadmap): void
78
    {
79
        $this->roadmap = $roadmap;
80
    }
81
}
82