Completed
Push — master ( 2665b8...a8e426 )
by Simonas
699:15 queued 634:16
created

PreProcessSearchEvent::getState()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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\Event;
13
14
use ONGR\ElasticsearchDSL\Search;
15
use ONGR\FilterManagerBundle\Filter\FilterState;
16
use Symfony\Component\EventDispatcher\Event;
17
18
class PreProcessSearchEvent extends Event
19
{
20
    /**
21
     * @var FilterState
22
     */
23
    private $state;
24
25
    /**
26
     * @var Search
27
     */
28
    private $relatedSearch;
29
30
    /**
31
     * Constructor
32
     *
33
     * @param FilterState $state
34
     * @param Search $relatedSearch
35
     */
36
    public function __construct(FilterState $state, Search $relatedSearch)
37
    {
38
        $this->state = $state;
39
        $this->relatedSearch = $relatedSearch;
40
    }
41
42
    /**
43
     * @return FilterState
44
     */
45
    public function getState()
46
    {
47
        return $this->state;
48
    }
49
50
    /**
51
     * @return Search
52
     */
53
    public function getRelatedSearch()
54
    {
55
        return $this->relatedSearch;
56
    }
57
}
58