1 | <?php |
||
2 | declare(strict_types = 1); |
||
3 | |||
4 | namespace Innmind\Immutable\State; |
||
5 | |||
6 | /** |
||
7 | * @psalm-immutable |
||
8 | * @template S |
||
9 | * @template T |
||
10 | */ |
||
11 | final class Result |
||
12 | { |
||
13 | /** @var S */ |
||
0 ignored issues
–
show
|
|||
14 | private $state; |
||
15 | /** @var T */ |
||
0 ignored issues
–
show
The type
Innmind\Immutable\State\T was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
16 | private $value; |
||
17 | |||
18 | /** |
||
19 | * @param S $state |
||
20 | * @param T $value |
||
21 | */ |
||
22 | private function __construct($state, $value) |
||
23 | { |
||
24 | $this->state = $state; |
||
25 | $this->value = $value; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @psalm-pure |
||
30 | * @template A |
||
31 | * @template B |
||
32 | * |
||
33 | * @param A $state |
||
0 ignored issues
–
show
The type
Innmind\Immutable\State\A was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
34 | * @param B $value |
||
0 ignored issues
–
show
The type
Innmind\Immutable\State\B was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
35 | * |
||
36 | * @return self<A, B> |
||
37 | */ |
||
38 | public static function of($state, $value): self |
||
39 | { |
||
40 | return new self($state, $value); |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return S |
||
45 | */ |
||
46 | public function state() |
||
47 | { |
||
48 | return $this->state; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return T |
||
53 | */ |
||
54 | public function value() |
||
55 | { |
||
56 | return $this->value; |
||
57 | } |
||
58 | } |
||
59 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths