FilterMetadata::getDefaults()   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
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
    private $defaults = [];
14
    private $tags;
15
16
    public function __construct(
17
        string $name,
18
        string $type,
19
        string $field = null,
20
        $defaults = [],
21
        array $options = [],
22
        array $tags = []
23
    ) {
24
        $this->name = $name;
25
        $this->type = $type;
26
        $this->options = $options;
27
        $this->defaults = $defaults;
28
        $this->field = $field;
29
        $this->tags = $tags;
30
    }
31
32
    public function getName(): string
33
    {
34
        return $this->name;
35
    }
36
37
    public function getType(): string
38
    {
39
        return $this->type;
40
    }
41
42
    public function getOptions(): array
43
    {
44
        return $this->options;
45
    }
46
47
    public function getField()
48
    {
49
        return $this->field;
50
    }
51
52
    public function getDefaults(): array
53
    {
54
        return $this->defaults;
55
    }
56
57
    public function getTags(): array
58
    {
59
        return $this->tags;
60
    }
61
}
62