FilterMetadata   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 0
dl 0
loc 55
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
A getName() 0 4 1
A getType() 0 4 1
A getOptions() 0 4 1
A getField() 0 4 1
A getDefaults() 0 4 1
A getTags() 0 4 1
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