Completed
Pull Request — master (#21)
by Daniel
02:31
created

Grid::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 15
rs 9.4285
cc 1
eloc 13
nc 1
nop 6
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\Grid\View;
6
7
use Psi\Component\Grid\View\ActionBar;
8
9
final class Grid
10
{
11
    private $classFqn;
12
    private $table;
13
    private $paginator;
14
    private $filterBar;
15
    private $actionBar;
16
    private $name;
17
18
    public function __construct(
19
        string $classFqn,
20
        string $name,
21
        Table $table,
22
        Paginator $paginator,
23
        FilterBar $filterBar,
24
        ActionBar $actionBar
25
    ) {
26
        $this->table = $table;
27
        $this->paginator = $paginator;
28
        $this->filterBar = $filterBar;
29
        $this->actionBar = $actionBar;
30
        $this->classFqn = $classFqn;
31
        $this->name = $name;
32
    }
33
34
    public function getName(): string
35
    {
36
        return $this->name;
37
    }
38
39
    public function getClassFqn(): string
40
    {
41
        return $this->classFqn;
42
    }
43
44
    public function getFilter(): FilterBar
45
    {
46
        return $this->filterBar;
47
    }
48
49
    public function getPaginator(): Paginator
50
    {
51
        return $this->paginator;
52
    }
53
54
    public function getTable(): Table
55
    {
56
        return $this->table;
57
    }
58
59
    public function getActionBar() 
60
    {
61
        return $this->actionBar;
62
    }
63
    
64
}
65