1 | <?php |
||
22 | class QueryBuilderRule extends AbstractQueryBuilder implements QueryBuilderOperatorInterface, QueryBuilderRuleInterface { |
||
23 | |||
24 | /** |
||
25 | * Decorator. |
||
26 | * |
||
27 | * @var QueryBuilderDecoratorInterface |
||
28 | */ |
||
29 | private $decorator; |
||
30 | |||
31 | /** |
||
32 | * Operator. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | private $operator; |
||
37 | |||
38 | /** |
||
39 | * Value. |
||
40 | * |
||
41 | * @var mixed |
||
42 | */ |
||
43 | private $value; |
||
44 | |||
45 | /** |
||
46 | * Constructor. |
||
47 | */ |
||
48 | public function __construct() { |
||
51 | |||
52 | /** |
||
53 | * {@inheritDoc} |
||
54 | */ |
||
55 | public function getDecorator() { |
||
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | public function getOperator() { |
||
65 | |||
66 | /** |
||
67 | * {@inheritDoc} |
||
68 | */ |
||
69 | public function getValue() { |
||
72 | |||
73 | /** |
||
74 | * Set the decorator. |
||
75 | * |
||
76 | * @param QueryBuilderDecoratorInterface|null $decorator The decorator. |
||
77 | * @return QueryBuilderRuleInterface Returns this rule. |
||
78 | */ |
||
79 | public function setDecorator(QueryBuilderDecoratorInterface $decorator = null) { |
||
83 | |||
84 | /** |
||
85 | * Set the operator. |
||
86 | * |
||
87 | * @param string $operator The operator. |
||
88 | * @return QueryBuilderRuleInterface Returns this rule. |
||
89 | * @throws InvalidArgumentException Throws an invalid argument exception if the operator is invalid. |
||
90 | */ |
||
91 | public function setOperator($operator) { |
||
98 | |||
99 | /** |
||
100 | * Set the value. |
||
101 | * |
||
102 | * @param mixed $value The value. |
||
103 | * @return QueryBuilderRuleInterface Returns this rule. |
||
104 | */ |
||
105 | public function setValue($value) { |
||
109 | } |
||
110 |