Passed
Pull Request — master (#184)
by
unknown
04:04
created

QueryCreatedEvent::getQuery()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/*
3
4
This file was created by developers working at BitBag
5
6
Do you need more information about us and what we do? Visit our   website!
7
8
We are hiring developers from all over the world. Join us and start your new, exciting adventure and become part of us: https://bitbag.io/career
9
*/
10
declare(strict_types=1);
11
12
namespace BitBag\SyliusElasticsearchPlugin\EventListener;
13
14
use Elastica\Query\AbstractQuery;
15
use Symfony\Contracts\EventDispatcher\Event;
16
17
final class QueryCreatedEvent extends Event implements QueryCreatedEventInterface
18
{
19
    /** @var AbstractQuery */
20
    private $query;
21
22
    public function __construct(AbstractQuery $query)
23
    {
24
        $this->query = $query;
25
    }
26
27
    public function getQuery(): AbstractQuery
28
    {
29
        return $this->query;
30
    }
31
}
32