Completed
Pull Request — master (#5)
by Daniel
10:04 queued 08:01
created

Grid::key()   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
namespace Psi\Component\Grid;
4
5
class Grid
6
{
7
    private $table;
8
    private $paginator;
9
    private $filter;
10
11
    public function __construct(
12
        Table $table,
13
        Paginator $paginator,
14
        FilterForm $filter
15
    ) {
16
        $this->table = $table;
17
        $this->paginator = $paginator;
18
        $this->filter = $filter;
19
    }
20
21
    public function getFilter(): FilterForm
22
    {
23
        return $this->filter;
24
    }
25
26
    public function getPaginator(): Paginator
27
    {
28
        return $this->paginator;
29
    }
30
31
    public function getTable(): Table
32
    {
33
        return $this->table;
34
    }
35
}
36