GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

ResultMapMetadata   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 112
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 7
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 112
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getFrom() 0 4 1
A setFrom() 0 6 1
A getTo() 0 4 1
A setTo() 0 6 1
A getOverride() 0 4 1
A setOverride() 0 6 1
1
<?php
2
/**
3
 * @link https://github.com/old-town/workflow-zf2-service
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace OldTown\Workflow\ZF2\Service\Metadata\Storage;
7
8
/**
9
 * Class ResultMapMetadata
10
 *
11
 * @package OldTown\Workflow\ZF2\Service\Metadata\Storage
12
 */
13
class ResultMapMetadata implements ResultMapMetadataInterface
14
{
15
    /**
16
     * Указывает имя из результав работы сервиса
17
     *
18
     * @var string
19
     *
20
     */
21
    protected $from;
22
23
    /**
24
     * Имя переменной в TransientVars
25
     *
26
     * @var string
27
     *
28
     */
29
    protected $to;
30
31
    /**
32
     * Разрешает перетирать ужу существующее значение
33
     *
34
     * @var boolean
35
     *
36
     */
37
    protected $override = false;
38
39
    /**
40
     * ResultMapMetadata constructor.
41
     *
42
     * @param string $from
43
     * @param string $to
44
     * @param boolean $override
45
     */
46
    public function __construct($from, $to, $override)
47
    {
48
        $this->setFrom($from);
49
        $this->setTo($to);
50
        $this->setOverride($override);
51
    }
52
53
    /**
54
     * Указывает имя из результав работы сервиса
55
     *
56
     * @return string
57
     */
58
    public function getFrom()
59
    {
60
        return $this->from;
61
    }
62
63
    /**
64
     * Определяет имя переменной из результатов работы сервиса, которое необходимо сохранить в TransientVars
65
     *
66
     * @param string $from
67
     *
68
     * @return $this
69
     */
70
    public function setFrom($from)
71
    {
72
        $this->from = $from;
73
74
        return $this;
75
    }
76
77
    /**
78
     * Имя переменной в TransientVars
79
     *
80
     * @return string
81
     */
82
    public function getTo()
83
    {
84
        return $this->to;
85
    }
86
87
    /**
88
     * Устанавливает имя переменной в TransientVars
89
     *
90
     * @param string $to
91
     *
92
     * @return $this
93
     */
94
    public function setTo($to)
95
    {
96
        $this->to = $to;
97
98
        return $this;
99
    }
100
101
    /**
102
     * Разрешает перетирать ужу существующее значение
103
     *
104
     * @return boolean
105
     */
106
    public function getOverride()
107
    {
108
        return $this->override;
109
    }
110
111
    /**
112
     * Разрешает перетирать ужу существующее значение
113
     *
114
     * @param boolean $override
115
     *
116
     * @return $this
117
     */
118
    public function setOverride($override)
119
    {
120
        $this->override = (boolean)$override;
121
122
        return $this;
123
    }
124
}
125