InvocationContext   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 5
dl 0
loc 17
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A __toString() 0 3 1
A getExecution() 0 3 1
1
<?php
2
3
namespace Jabe\Application;
4
5
use Jabe\Delegate\BaseDelegateExecutionInterface;
6
7
class InvocationContext
8
{
9
    protected $execution;
10
11
    public function __construct(BaseDelegateExecutionInterface $execution)
12
    {
13
        $this->execution = $execution;
14
    }
15
16
    public function getExecution(): ?BaseDelegateExecutionInterface
17
    {
18
        return $this->execution;
19
    }
20
21
    public function __toString()
22
    {
23
        return "InvocationContext [execution=" . $this->execution . "]";
0 ignored issues
show
Bug introduced by
Are you sure $this->execution of type Jabe\Delegate\BaseDelegateExecutionInterface can be used in concatenation? Consider adding a __toString()-method. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

23
        return "InvocationContext [execution=" . /** @scrutinizer ignore-type */ $this->execution . "]";
Loading history...
24
    }
25
}
26