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.

TransitionResultTrait::setEntryId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
/**
3
 * @link https://github.com/old-town/workflow-zf2
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace OldTown\Workflow\ZF2\ServiceEngine\Workflow;
7
8
use OldTown\Workflow\Loader\WorkflowDescriptor;
9
use OldTown\Workflow\TransientVars\TransientVarsInterface;
10
use OldTown\Workflow\WorkflowInterface;
11
12
/**
13
 * Class TransitionResultTrait
14
 *
15
 * @package OldTown\Workflow\ZF2\ServiceEngine\Workflow
16
 */
17
trait TransitionResultTrait
18
{
19
    /**
20
     * @var WorkflowDescriptor
21
     */
22
    protected $workflow;
23
24
    /**
25
     * Переменные контекста исполнения workflow
26
     *
27
     * @var TransientVarsInterface
28
     */
29
    protected $transientVars;
30
31
    /**
32
     *
33
     * @var string
34
     */
35
    protected $viewName;
36
37
    /**
38
     * @var WorkflowInterface
39
     */
40
    protected $workflowManager;
41
42
    /**
43
     *
44
     * @var integer
45
     */
46
    protected $entryId;
47
48
    /**
49
     * @return WorkflowDescriptor
50
     */
51
    public function getWorkflow()
52
    {
53
        return $this->workflow;
54
    }
55
56
    /**
57
     * @param WorkflowDescriptor $workflow
58
     *
59
     * @return $this
60
     */
61
    public function setWorkflow(WorkflowDescriptor $workflow)
62
    {
63
        $this->workflow = $workflow;
64
65
        return $this;
66
    }
67
68
    /**
69
     * @return TransientVarsInterface
70
     */
71
    public function getTransientVars()
72
    {
73
        return $this->transientVars;
74
    }
75
76
    /**
77
     * @param TransientVarsInterface $transientVars
78
     *
79
     * @return $this
80
     */
81
    public function setTransientVars(TransientVarsInterface $transientVars)
82
    {
83
        $this->transientVars = $transientVars;
84
85
        return $this;
86
    }
87
88
    /**
89
     * @return string
90
     */
91
    public function getViewName()
92
    {
93
        return $this->viewName;
94
    }
95
96
    /**
97
     * @param string $viewName
98
     *
99
     * @return $this
100
     */
101
    public function setViewName($viewName)
102
    {
103
        $this->viewName = (string)$viewName;
104
105
        return $this;
106
    }
107
108
    /**
109
     * @return WorkflowInterface
110
     */
111
    public function getWorkflowManager()
112
    {
113
        return $this->workflowManager;
114
    }
115
116
    /**
117
     * @param WorkflowInterface $workflowManager
118
     *
119
     * @return $this
120
     */
121
    public function setWorkflowManager(WorkflowInterface $workflowManager)
122
    {
123
        $this->workflowManager = $workflowManager;
124
125
        return $this;
126
    }
127
128
    /**
129
     * @return int
130
     */
131
    public function getEntryId()
132
    {
133
        return $this->entryId;
134
    }
135
136
    /**
137
     * @param int $entryId
138
     *
139
     * @return $this
140
     */
141
    public function setEntryId($entryId)
142
    {
143
        $this->entryId = (integer)$entryId;
144
145
        return $this;
146
    }
147
}
148