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.
Completed
Push — dev ( 37e84b...c7bcbf )
by Андрей
06:51
created

WorkflowManagerTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 31
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getWorkflowManager() 0 4 1
A setWorkflowManager() 0 6 1
1
<?php
2
/**
3
 * @link https://github.com/old-town/old-town-workflow
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace OldTown\Workflow\Engine;
7
8
use OldTown\Workflow\WorkflowInterface;
9
10
11
/**
12
 * Class WorkflowManagerTrait
13
 *
14
 * @package OldTown\Workflow\Engine
15
 */
16
trait WorkflowManagerTrait
17
{
18
    /**
19
     * @var WorkflowInterface
20
     */
21
    protected $workflowManager;
22
23
    /**
24
     * Устанавливает менеджер workflow
25
     *
26
     * @return WorkflowInterface
27
     */
28 19
    public function getWorkflowManager()
29
    {
30 19
        return $this->workflowManager;
31
    }
32
33
    /**
34
     * Возвращает менеджер workflow
35
     *
36
     * @param WorkflowInterface $workflowManager
37
     *
38
     * @return $this
39
     */
40 19
    public function setWorkflowManager(WorkflowInterface $workflowManager)
41
    {
42 19
        $this->workflowManager = $workflowManager;
43
44 19
        return $this;
45
    }
46
}
47