File tree 1 file changed +8
-7
lines changed
1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 3
3
namespace Nette\Database\Table;
4
4
5
5
/**
6
- * @phpstan-implements \Iterator<string, ActiveRow>
7
- * @phpstan-implements \ArrayAccess<string, \Nette\Database\IRow>
6
+ * @template T of ActiveRow
7
+ * @phpstan-implements \Iterator<string, T>
8
+ * @phpstan-implements \ArrayAccess<string, T>
8
9
*/
9
10
class Selection implements \Iterator, \ArrayAccess
10
11
{
11
12
/**
12
13
* @phpstan-param positive-int|0|null $limit
13
14
* @phpstan-param positive-int|0|null $offset
14
- * @return static
15
+ * @return static<T>
15
16
*/
16
17
public function limit(?int $limit, int $offset = null)
17
18
{
18
19
}
19
-
20
+
20
21
/**
21
22
* @phpstan-param positive-int|0 $page
22
23
* @phpstan-param positive-int|0 $itemsPerPage
23
24
* @param int $numOfPages [optional]
24
- * @return static
25
+ * @return static<T>
25
26
*/
26
27
public function page(int $page, int $itemsPerPage, &$numOfPages = null)
27
28
{
@@ -30,12 +31,12 @@ class Selection implements \Iterator, \ArrayAccess
30
31
/**
31
32
* @param string|array<string|int,mixed> $condition
32
33
* @param mixed $params
33
- * @return static
34
+ * @return static<T>
34
35
*/
35
36
public function where($condition, ...$params)
36
37
{
37
38
}
38
-
39
+
39
40
/**
40
41
* @param string $column
41
42
* @return positive-int|0
You can’t perform that action at this time.
0 commit comments