Completed
Pull Request — master (#15)
by Daniel
02:00
created

Grid   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 0
loc 39
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
A getClassFqn() 0 4 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 $classFqn;
10
    private $table;
11
    private $paginator;
12
    private $filter;
13
14
    public function __construct(
15
        $classFqn,
16
        Table $table,
17
        Paginator $paginator,
18
        FilterForm $filter
19
    ) {
20
        $this->table = $table;
21
        $this->paginator = $paginator;
22
        $this->filter = $filter;
23
        $this->classFqn = $classFqn;
24
    }
25
26
    public function getClassFqn()
27
    {
28
        return $this->classFqn;
29
    }
30
31
    public function getFilter(): FilterForm
32
    {
33
        return $this->filter;
34
    }
35
36
    public function getPaginator(): Paginator
37
    {
38
        return $this->paginator;
39
    }
40
41
    public function getTable(): Table
42
    {
43
        return $this->table;
44
    }
45
}
46