Completed
Pull Request — master (#5)
by Daniel
06:54
created

Grid::current()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A Grid::getPaginator() 0 4 1
1
<?php
2
3
namespace Psi\Component\Grid;
4
5
use Psi\Component\Grid\FilterForm;
6
7
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
    {
19
        $this->table = $table;
20
        $this->paginator = $paginator;
21
        $this->filter = $filter;
22
    }
23
24
    public function getFilter(): FilterForm
25
    {
26
        return $this->filter;
27
    }
28
29
    public function getPaginator(): Paginator
30
    {
31
        return $this->paginator;
32
    }
33
34
    public function getTable(): Table
35
    {
36
        return $this->table;
37
    }
38
}
39