Completed
Push — master ( a70275...95cd1e )
by Grégoire
03:02
created

Pager   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 9
lcom 1
cbo 1
dl 0
loc 42
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A init() 0 3 1
A getMaxPerPage() 0 3 1
A setMaxPerPage() 0 3 1
A setPage() 0 3 1
A setQuery() 0 3 1
A getResults() 0 4 1
A setMaxPageLinks() 0 3 1
A getMaxPageLinks() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Sonata Project package.
7
 *
8
 * (c) Thomas Rabaix <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Sonata\AdminBundle\Tests\App\Datagrid;
15
16
use Sonata\AdminBundle\Datagrid\PagerInterface;
17
use Sonata\AdminBundle\Tests\App\Model\FooRepository;
18
19
final class Pager implements PagerInterface
20
{
21
    private $repository;
22
23
    public function __construct(FooRepository $repository)
24
    {
25
        $this->repository = $repository;
26
    }
27
28
    public function init()
29
    {
30
    }
31
32
    public function getMaxPerPage()
33
    {
34
    }
35
36
    public function setMaxPerPage($max)
37
    {
38
    }
39
40
    public function setPage($page)
41
    {
42
    }
43
44
    public function setQuery($query)
45
    {
46
    }
47
48
    public function getResults(): array
49
    {
50
        return $this->repository->all();
51
    }
52
53
    public function setMaxPageLinks($maxPageLinks)
54
    {
55
    }
56
57
    public function getMaxPageLinks()
58
    {
59
    }
60
}
61