Completed
Push — master ( 2d0f6c...eac9aa )
by
unknown
02:26
created

PreCreateFilterConditionEvent::getMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
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
     * @var string
21
     */
22
    private $method;
23
24
    /**
25
     * @param DataTypeInterface $dataType
26
     * @param mixed             $value
27
     * @param string            $method
28
     */
29
    public function __construct(DataTypeInterface $dataType, $value, $method)
30
    {
31
        $this->dataType = $dataType;
32
        $this->databaseValue = $value;
33
        $this->method = $method;
34
    }
35
36
    /**
37
     * @return DataTypeInterface
38
     */
39
    public function getDataType()
40
    {
41
        return $this->dataType;
42
    }
43
44
    /**
45
     * @return mixed
46
     */
47
    public function getDatabaseValue()
48
    {
49
        return $this->databaseValue;
50
    }
51
52
    /**
53
     * @param mixed $databaseValue
54
     */
55
    public function setDatabaseValue($databaseValue)
56
    {
57
        $this->databaseValue = $databaseValue;
58
    }
59
60
    /**
61
     * @return string
62
     */
63
    public function getMethod()
64
    {
65
        return $this->method;
66
    }
67
}
68