Skip to content
This repository was archived by the owner on Jun 19, 2022. It is now read-only.

Commit 166da71

Browse files
author
fd6130
committed
update adapter comment
1 parent d7efd44 commit 166da71

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Pagination/Adapter/DoctrineAdapter.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
use Doctrine\ORM\Tools\Pagination\Paginator;
88
use Pagerfanta\Adapter\AdapterInterface;
99

10-
/**
11-
* Adapter which calculates pagination from a Doctrine ORM Query or QueryBuilder.
12-
*/
1310
class DoctrineAdapter implements AdapterInterface
1411
{
1512
private Paginator $paginator;
@@ -18,8 +15,10 @@ class DoctrineAdapter implements AdapterInterface
1815

1916
/**
2017
* @param Query|QueryBuilder $query
21-
* @param bool $fetchJoinCollection Whether the query joins a collection (true by default)
22-
* @param bool|null $useOutputWalkers Flag indicating whether output walkers are used in the paginator
18+
* @param bool $fetchJoinCollection Whether the query joins a collection (true by default)
19+
* @param bool|null $useOutputWalkers Flag indicating whether output walkers are used in the paginator
20+
* @param int|null $lifetime To indicate how long the cache is alive
21+
* @param string|null $resultCacheId The unique id for caching
2322
*/
2423
public function __construct($query, bool $fetchJoinCollection = true, ?bool $useOutputWalkers = null, ?int $lifetime = null, ?string $resultCacheId = null)
2524
{

0 commit comments

Comments
 (0)