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

Grid   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 9 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
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