-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the ONGR package. | ||
* | ||
* (c) NFQ Technologies UAB <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace ONGR\FilterManagerBundle\Event; | ||
|
||
use ONGR\ElasticsearchDSL\Search; | ||
use ONGR\FilterManagerBundle\Filter\FilterInterface; | ||
use Symfony\Component\EventDispatcher\Event; | ||
|
||
class PreProcessSearchEvent extends Event | ||
{ | ||
/** | ||
* @var FilterInterface | ||
*/ | ||
private $filter; | ||
|
||
/** | ||
* @var Search | ||
*/ | ||
private $relatedSearch; | ||
|
||
/** | ||
* Constructor | ||
* | ||
* @param FilterInterface $filter | ||
* @param Search $relatedSearch | ||
*/ | ||
public function __construct(FilterInterface $filter, Search $relatedSearch) | ||
{ | ||
$this->filter = $filter; | ||
$this->relatedSearch = $relatedSearch; | ||
} | ||
|
||
/** | ||
* @return FilterInterface | ||
*/ | ||
public function getFilter() | ||
{ | ||
return $this->filter; | ||
} | ||
|
||
/** | ||
* @return Search | ||
*/ | ||
public function getRelatedSearch() | ||
{ | ||
return $this->relatedSearch; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters