Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class ChainManager |
||
8 | { |
||
9 | /** |
||
10 | * @var \Imanghafoori\HeyMan\Chain |
||
11 | */ |
||
12 | private $chain; |
||
13 | |||
14 | 105 | public function startChain() |
|
15 | { |
||
16 | 105 | $this->chain = new Chain(); |
|
17 | 105 | $this->chain->chainInfo = [ |
|
|
|||
18 | 'beforeReaction' => [], |
||
19 | 'debugInfo' => ['file' => '', 'line' => '', 'args' => ''], |
||
20 | 'responseType' => 'nothing', |
||
21 | 'data' => [], |
||
22 | ]; |
||
23 | 105 | } |
|
24 | |||
25 | 96 | public function submitChainConfig() |
|
29 | 96 | } |
|
30 | |||
31 | 90 | public function get($key) |
|
34 | 90 | } |
|
35 | 90 | ||
36 | public function set($key, $value) |
||
39 | 104 | } |
|
40 | |||
41 | public function push($key, $value) |
||
46 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..