Completed
Pull Request — master (#5)
by Daniel
08:08 queued 06:02
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
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