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

DataSetQueryBuilderEvent   A

Coupling/Cohesion

Components 0
Dependencies 1

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getQueryBuilder() 0 4 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 <[email protected]>
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