File tree Expand file tree Collapse file tree 3 files changed +250
-77
lines changed Expand file tree Collapse file tree 3 files changed +250
-77
lines changed Original file line number Diff line number Diff line change 41
41
<directory name =" src" />
42
42
</errorLevel >
43
43
</DeprecatedInterface >
44
+ <UnusedForeachValue >
45
+ <errorLevel type =" suppress" >
46
+ <directory name =" tests" />
47
+ <directory name =" src" />
48
+ </errorLevel >
49
+ </UnusedForeachValue >
44
50
</issueHandlers >
45
51
<stubs >
46
52
<file name =" ./vendor/vimeo/psalm/stubs/ext-ds.phpstub" />
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ declare (strict_types=1 );
4
+
5
+ /*
6
+ * This file is part of the Laudis Neo4j package.
7
+ *
8
+ * (c) Laudis technologies <http://laudis.tech>
9
+ *
10
+ * For the full copyright and license information, please view the LICENSE
11
+ * file that was distributed with this source code.
12
+ */
13
+
3
14
namespace Laudis \Neo4j \Databags ;
4
15
5
- class Pair
16
+ /**
17
+ * @template TKey
18
+ * @template TValue
19
+ *
20
+ * @psalm-immutable
21
+ */
22
+ final class Pair
6
23
{
24
+ /** @var TKey */
25
+ private $ key ;
26
+ /** @var TValue */
27
+ private $ value ;
28
+
29
+ /**
30
+ * @param TKey $key
31
+ * @param TValue $value
32
+ */
33
+ public function __construct ($ key , $ value )
34
+ {
35
+ $ this ->key = $ key ;
36
+ $ this ->value = $ value ;
37
+ }
38
+
39
+ /**
40
+ * @return TKey
41
+ */
42
+ public function getKey ()
43
+ {
44
+ return $ this ->key ;
45
+ }
7
46
47
+ /**
48
+ * @return TValue
49
+ */
50
+ public function getValue ()
51
+ {
52
+ return $ this ->value ;
53
+ }
8
54
}
You can’t perform that action at this time.
0 commit comments