Completed
Push — 3.x ( eebc20...445039 )
by Grégoire
04:15
created

Datagrid::buildPager()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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\DatagridInterface;
17
use Sonata\AdminBundle\Datagrid\PagerInterface;
18
use Sonata\AdminBundle\Filter\FilterInterface;
19
use Symfony\Component\Form\Extension\Core\Type\FormType;
20
use Symfony\Component\Form\FormFactoryInterface;
21
22
final class Datagrid implements DatagridInterface
23
{
24
    private $formFactory;
25
    private $pager;
26
27
    public function __construct(FormFactoryInterface $formFactory, PagerInterface $pager)
28
    {
29
        $this->formFactory = $formFactory;
30
        $this->pager = $pager;
31
    }
32
33
    public function getPager()
34
    {
35
        return $this->pager;
36
    }
37
38
    public function getQuery()
39
    {
40
    }
41
42
    public function getResults()
43
    {
44
        return $this->pager->getResults();
45
    }
46
47
    public function buildPager()
48
    {
49
    }
50
51
    public function addFilter(FilterInterface $filter)
52
    {
53
    }
54
55
    public function getFilters()
56
    {
57
    }
58
59
    public function reorderFilters(array $keys)
60
    {
61
    }
62
63
    public function getValues()
64
    {
65
        return [];
66
    }
67
68
    public function getColumns()
69
    {
70
    }
71
72
    public function setValue($name, $operator, $value)
73
    {
74
    }
75
76
    public function getForm()
77
    {
78
        return $this->formFactory->createNamedBuilder('filter', FormType::class, [])->getForm();
79
    }
80
81
    public function getFilter($name)
82
    {
83
    }
84
85
    public function hasFilter($name)
86
    {
87
    }
88
89
    public function removeFilter($name)
90
    {
91
    }
92
93
    public function hasActiveFilters()
94
    {
95
    }
96
97
    public function hasDisplayableFilters()
98
    {
99
    }
100
}
101