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

Grid::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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