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

QueryFilter::setSerializedData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
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