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::getCaller()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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