ASTAssertion::getValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Netdudes\DataSourceryBundle\UQL\AST;
3
4
/**
5
 * Class ASTAssertion
6
 *
7
 * Abstract Syntax Tree node representing a combination a <assertion> on the language.
8
 */
9
class ASTAssertion
10
{
11
    private $identifier;
12
13
    private $operator;
14
15
    private $value;
16
17
    /**
18
     * @param $identifier
19
     * @param $operator
20
     * @param $value
21
     */
22
    public function __construct($identifier, $operator, $value)
23
    {
24
        $this->identifier = $identifier;
25
        $this->operator = $operator;
26
        $this->value = $value;
27
    }
28
29
    /**
30
     * @return mixed
31
     */
32
    public function getIdentifier()
33
    {
34
        return $this->identifier;
35
    }
36
37
    /**
38
     * @param mixed $identifier
39
     */
40
    public function setIdentifier($identifier)
41
    {
42
        $this->identifier = $identifier;
43
    }
44
45
    /**
46
     * @return mixed
47
     */
48
    public function getOperator()
49
    {
50
        return $this->operator;
51
    }
52
53
    /**
54
     * @param mixed $operator
55
     */
56
    public function setOperator($operator)
57
    {
58
        $this->operator = $operator;
59
    }
60
61
    /**
62
     * @return mixed
63
     */
64
    public function getValue()
65
    {
66
        return $this->value;
67
    }
68
69
    /**
70
     * @param mixed $value
71
     */
72
    public function setValue($value)
73
    {
74
        $this->value = $value;
75
    }
76
}
77