Completed
Pull Request — master (#15)
by Daniel
01:58
created

Grid   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 47
rs 10

6 Methods

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