Failed Conditions
Push — master ( 4591eb...aca5b1 )
by Denis
05:51
created

QueryFilter   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 25
ccs 0
cts 11
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getAliasName() 0 3 1
A setSerializedData() 0 3 1
A hasSerializedData() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Artprima\QueryFilterBundle\Controller\Annotations;
6
7
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
8
9
/**
10
 * Class QueryFilter
11
 *
12
 * @author Denis Voytyuk <[email protected]>
13
 *
14
 * @package Artprima\QueryFilterBundle\Controller\Annotations
15
 */
16
class QueryFilter extends Template
17
{
18
    protected $serializedData = false;
19
    /**
20
     * @return string
21
     */
22
    public function getAliasName()
23
    {
24
        return 'queryfilter';
25
    }
26
27
    /**
28
     * @param bool $serializedData
29
     */
30
    public function setSerializedData($serializedData)
31
    {
32
        $this->serializedData = $serializedData;
33
    }
34
35
    /**
36
     * @return bool
37
     */
38
    public function hasSerializedData()
39
    {
40
        return $this->serializedData;
41
    }
42
}
43