Completed
Pull Request — master (#5)
by Daniel
08:08 queued 06:02
created

Grid::rewind()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\Grid;
6
7
final class Grid
8
{
9
    private $table;
10
    private $paginator;
11
    private $filter;
12
13
    public function __construct(
14
        Table $table,
15
        Paginator $paginator,
16
        FilterForm $filter
17
    ) {
18
        $this->table = $table;
19
        $this->paginator = $paginator;
20
        $this->filter = $filter;
21
    }
22
23
    public function getFilter(): FilterForm
24
    {
25
        return $this->filter;
26
    }
27
28
    public function getPaginator(): Paginator
29
    {
30
        return $this->paginator;
31
    }
32
33
    public function getTable(): Table
34
    {
35
        return $this->table;
36
    }
37
}
38