Skip to content

Commit 7fda196

Browse files
dakorparondrejmirtes
authored andcommitted
add stub for Nette\Utils\Paginator
1 parent 0fd6953 commit 7fda196

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

extension.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ parameters:
1515
- stubs/Routing/Router.stub
1616
- stubs/Utils/ArrayHash.stub
1717
- stubs/Utils/Html.stub
18+
- stubs/Utils/Paginator.stub
1819
universalObjectCratesClasses:
1920
- Nette\Application\UI\ITemplate
2021
- Nette\Application\UI\Template

stubs/Utils/Paginator.stub

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace Nette\Utils;
4+
5+
class Paginator
6+
{
7+
8+
/**
9+
* @phpstan-return positive-int|0
10+
*/
11+
public function getOffset(): int
12+
{
13+
// nothing
14+
}
15+
16+
/**
17+
* @phpstan-return positive-int|0
18+
*/
19+
public function getItemsPerPage(): int
20+
{
21+
// nothing
22+
}
23+
}

0 commit comments

Comments
 (0)