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

PreSearchEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 27
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getSearchRequest() 0 4 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\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