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

Grid   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 32
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
A getFilter() 0 4 1
A getPaginator() 0 4 1
A getTable() 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