Grid::getTable()   A
last analyzed

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\View;
6
7
final class Grid
8
{
9
    private $classFqn;
10
    private $table;
11
    private $paginator;
12
    private $filterBar;
13
    private $actionBar;
14
    private $name;
15
16
    public function __construct(
17
        string $classFqn,
18
        string $name,
19
        Table $table,
20
        Paginator $paginator,
21
        FilterBar $filterBar,
22
        ActionBar $actionBar
23
    ) {
24
        $this->table = $table;
25
        $this->paginator = $paginator;
26
        $this->filterBar = $filterBar;
27
        $this->actionBar = $actionBar;
28
        $this->classFqn = $classFqn;
29
        $this->name = $name;
30
    }
31
32
    public function getName(): string
33
    {
34
        return $this->name;
35
    }
36
37
    public function getClassFqn(): string
38
    {
39
        return $this->classFqn;
40
    }
41
42
    public function getFilter(): FilterBar
43
    {
44
        return $this->filterBar;
45
    }
46
47
    public function getPaginator(): Paginator
48
    {
49
        return $this->paginator;
50
    }
51
52
    public function getTable(): Table
53
    {
54
        return $this->table;
55
    }
56
57
    public function getActionBar()
58
    {
59
        return $this->actionBar;
60
    }
61
}
62