Completed
Push — master ( 3346e3...b70bc6 )
by Adam
06:41
created

DataSetQueryBuilderEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Duplication

Lines 0
Ratio 0 %

Size

Total Lines 4
Code Lines 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace WellCommerce\Component\DataSet\Event;
4
5
use Doctrine\ORM\QueryBuilder;
6
use Symfony\Component\EventDispatcher\Event;
7
8
/**
9
 * Class DataSetQueryBuilderEvent
10
 *
11
 * @author  Adam Piotrowski <adam@wellcommerce.org>
12
 */
13
class DataSetQueryBuilderEvent extends Event
14
{
15
    const EVENT_SUFFIX = 'dataset.query_builder.create';
16
    
17
    /**
18
     * @var QueryBuilder
19
     */
20
    private $queryBuilder;
21
    
22
    public function __construct(QueryBuilder $queryBuilder)
23
    {
24
        $this->queryBuilder = $queryBuilder;
25
    }
26
    
27
    public function getQueryBuilder(): QueryBuilder
28
    {
29
        return $this->queryBuilder;
30
    }
31
}
32