Skip to content

Commit

Permalink
minor #1276 Add types (seb-jean)
Browse files Browse the repository at this point in the history
This PR was merged into the main branch.

Discussion
----------

Add types

Commits
-------

c344c0d Update Paginator.php
  • Loading branch information
javiereguiluz committed Dec 2, 2021
2 parents 1a7777f + c344c0d commit 3cc3abc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Pagination/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class Paginator
*/
public const PAGE_SIZE = 10;

private $queryBuilder;
private $currentPage;
private $pageSize;
private $results;
private $numResults;
private DoctrineQueryBuilder $queryBuilder;
private int $currentPage;
private int $pageSize;
private \Traversable $results;
private int $numResults;

public function __construct(DoctrineQueryBuilder $queryBuilder, int $pageSize = self::PAGE_SIZE)
{
Expand Down

0 comments on commit 3cc3abc

Please sign in to comment.