Completed
Pull Request — master (#5)
by Daniel
08:08 queued 06:02
created

FilterMetadata::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Psi\Component\Grid\Metadata;
6
7
final class FilterMetadata
8
{
9
    private $name;
10
    private $type;
11
    private $options = [];
12
    private $field;
13
14
    public function __construct(
15
        string $name,
16
        string $type,
17
        string $field = null,
18
        array $options = []
19
    ) {
20
        $this->name = $name;
21
        $this->type = $type;
22
        $this->options = $options;
23
        $this->field = $field;
24
    }
25
26
    public function getName(): string
27
    {
28
        return $this->name;
29
    }
30
31
    public function getType(): string
32
    {
33
        return $this->type;
34
    }
35
36
    public function getOptions(): array
37
    {
38
        return $this->options;
39
    }
40
41
    public function getField()
42
    {
43
        return $this->field;
44
    }
45
}
46