Completed
Push — dev ( 4306de...25864c )
by Arnaud
02:52
created

Filter   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 4
c 1
b 1
f 0
lcom 0
cbo 0
dl 0
loc 50
ccs 0
cts 10
cp 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getFieldName() 0 4 1
A setFieldName() 0 4 1
A getType() 0 4 1
A setType() 0 4 1
1
<?php
2
3
namespace LAG\AdminBundle\Admin;
4
5
class Filter
6
{
7
    const TYPE_SELECT = 'select';
8
9
    /**
10
     * Field name.
11
     *
12
     * @var string
13
     */
14
    protected $fieldName;
15
16
    /**
17
     * Filter type (select, text...).
18
     *
19
     * @var
20
     */
21
    protected $type;
22
23
    /**
24
     * @return string
25
     */
26
    public function getFieldName()
27
    {
28
        return $this->fieldName;
29
    }
30
31
    /**
32
     * @param string $fieldName
33
     */
34
    public function setFieldName($fieldName)
35
    {
36
        $this->fieldName = $fieldName;
37
    }
38
39
    /**
40
     * @return mixed
41
     */
42
    public function getType()
43
    {
44
        return $this->type;
45
    }
46
47
    /**
48
     * @param mixed $type
49
     */
50
    public function setType($type)
51
    {
52
        $this->type = $type;
53
    }
54
}
55