ASTAssertion   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 68
c 0
b 0
f 0
wmc 7
lcom 0
cbo 0
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getIdentifier() 0 4 1
A setIdentifier() 0 4 1
A getOperator() 0 4 1
A setOperator() 0 4 1
A getValue() 0 4 1
A setValue() 0 4 1
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