Completed
Pull Request — master (#169)
by
unknown
64:41
created

PreSearchEvent::getSearchRequest()   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 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\FilterManagerBundle\Search\SearchRequest;
15
use Symfony\Component\EventDispatcher\Event;
16
17
class PreSearchEvent extends Event
18
{
19
    /**
20
     * @var SearchRequest
21
     */
22
    private $searchRequest;
23
24
    /**
25
     * Constructor
26
     *
27
     * @param SearchRequest $searchRequest
28
     */
29
    public function __construct(SearchRequest $searchRequest)
30
    {
31
        $this->searchRequest = $searchRequest;
32
    }
33
34
    /**
35
     * Returns search request
36
     *
37
     * @return SearchRequest
38
     */
39
    public function getSearchRequest()
40
    {
41
        return $this->searchRequest;
42
    }
43
}
44