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

QueryCreatedEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
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
15
use Elastica\Query;
16
use Symfony\Contracts\EventDispatcher\Event;
17
18
19
final class QueryCreatedEvent extends Event
20
{
21
    public const NAME = 'query.created.event';
22
23
    /** @var Query\BoolQuery */
24
    private  $query;
25
26
    public function __construct(Query\BoolQuery $query)
27
    {
28
        $this->query = $query;
29
    }
30
}
31