DbalPaginator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 11
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace ReadModel\Bridge\Doctrine;
5
6
use Doctrine\DBAL\Query\QueryBuilder;
7
use ReadModel\Paginator;
8
9
class DbalPaginator extends Paginator
10
{
11
    use DbalPaginatorCapabilities;
12
13
    /** @var QueryBuilder */
14
    private $qb;
15
16
    public function __construct(QueryBuilder $qb, ?int $limit, int $offset)
17
    {
18
        parent::__construct($limit, $offset);
19
        $this->qb = $qb;
20
    }
21
}
22