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 ( 925885...2441e9 )
by Андрей
06:27
created

BasicWorkflowContext   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 32
ccs 7
cts 7
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCaller() 0 4 1
A setRollbackOnly() 0 4 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\Basic;
7
8
use OldTown\Workflow\WorkflowContextInterface;
9
10
/**
11
 * Class BasicWorkflow
12
 *
13
 * @package OldTown\Workflow\Basic
14
 */
15
class  BasicWorkflowContext implements WorkflowContextInterface
16
{
17
    /**
18
     * @var string
19
     */
20
    private $caller;
21
22
    /**
23
     * @param $caller
24
     */
25 19
    public function __construct($caller)
26
    {
27 19
        $this->caller = $caller;
28 19
    }
29
30
    /**
31
     * @return string
32
     */
33 5
    public function getCaller()
34
    {
35 5
        return $this->caller;
36
    }
37
38
    /**
39
     *
40
     * @return void
41
     */
42 3
    public function setRollbackOnly()
43
    {
44
        // does nothing, this is basic, remember!
45 3
    }
46
}
47