Completed
Push — master ( 7d3672...a34d6f )
by Simonas
357:48 queued 292:56
created

RelationAwareTrait::setResetRelation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
/*
4
 * This file is part of the ONGR package.
5
 *
6
 * (c) NFQ Technologies UAB <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace ONGR\FilterManagerBundle\Filter\Relation;
13
14
use ONGR\FilterManagerBundle\Relation\RelationInterface;
15
16
/**
17
 * This trait provides properties for standard filter relations.
18
 */
19
trait RelationAwareTrait
20
{
21
    /**
22
     * @var RelationInterface|null
23
     */
24
    private $searchRelation;
25
26
    /**
27
     * @var RelationInterface|null
28
     */
29
    private $resetRelation;
30
31
    /**
32
     * @return null|RelationInterface
33
     */
34
    public function getResetRelation()
35
    {
36
        return $this->resetRelation;
37
    }
38
39
    /**
40
     * @param null|RelationInterface $resetRelation
41
     */
42
    public function setResetRelation($resetRelation)
43
    {
44
        $this->resetRelation = $resetRelation;
45
    }
46
47
    /**
48
     * @return null|RelationInterface
49
     */
50
    public function getSearchRelation()
51
    {
52
        return $this->searchRelation;
53
    }
54
55
    /**
56
     * @param null|RelationInterface $searchRelation
57
     */
58
    public function setSearchRelation($searchRelation)
59
    {
60
        $this->searchRelation = $searchRelation;
61
    }
62
}
63