Completed
Push — master ( 48c3ae...6eeb89 )
by
unknown
05:00 queued 02:22
created

PreCreateFilterConditionEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getDataType() 0 4 1
A getDatabaseValue() 0 4 1
A setDatabaseValue() 0 4 1
1
<?php
2
namespace Netdudes\DataSourceryBundle\UQL\Event;
3
4
use Netdudes\DataSourceryBundle\DataType\DataTypeInterface;
5
use Symfony\Component\EventDispatcher\Event;
6
7
class PreCreateFilterConditionEvent extends Event
8
{
9
    /**
10
     * @var DataTypeInterface
11
     */
12
    private $dataType;
13
14
    /**
15
     * @var mixed
16
     */
17
    private $databaseValue;
18
19
    /**
20
     * @param DataTypeInterface $dataType
21
     * @param mixed $value
22
     */
23
    public function __construct(DataTypeInterface $dataType, $value)
24
    {
25
        $this->dataType = $dataType;
26
        $this->databaseValue = $value;
27
    }
28
29
    /**
30
     * @return DataTypeInterface
31
     */
32
    public function getDataType()
33
    {
34
        return $this->dataType;
35
    }
36
37
    /**
38
     * @return mixed
39
     */
40
    public function getDatabaseValue()
41
    {
42
        return $this->databaseValue;
43
    }
44
45
    /**
46
     * @param mixed $databaseValue
47
     */
48
    public function setDatabaseValue($databaseValue)
49
    {
50
        $this->databaseValue = $databaseValue;
51
    }
52
}
53