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

PreCreateFilterConditionEvent::getDatabaseValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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