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

Commit

Permalink
update adapter comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fd6130 committed Oct 8, 2021
1 parent d7efd44 commit 166da71
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Pagination/Adapter/DoctrineAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
use Doctrine\ORM\Tools\Pagination\Paginator;
use Pagerfanta\Adapter\AdapterInterface;

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

/**
* @param Query|QueryBuilder $query
* @param bool $fetchJoinCollection Whether the query joins a collection (true by default)
* @param bool|null $useOutputWalkers Flag indicating whether output walkers are used in the paginator
* @param bool $fetchJoinCollection Whether the query joins a collection (true by default)
* @param bool|null $useOutputWalkers Flag indicating whether output walkers are used in the paginator
* @param int|null $lifetime To indicate how long the cache is alive
* @param string|null $resultCacheId The unique id for caching
*/
public function __construct($query, bool $fetchJoinCollection = true, ?bool $useOutputWalkers = null, ?int $lifetime = null, ?string $resultCacheId = null)
{
Expand Down

0 comments on commit 166da71

Please sign in to comment.