1 | <?php |
||
25 | class QueryBuilderRule extends AbstractQueryBuilder implements QueryBuilderOperatorInterface, QueryBuilderRuleInterface { |
||
26 | |||
27 | /** |
||
28 | * Decorator. |
||
29 | * |
||
30 | * @var QueryBuilderDecoratorInterface|null |
||
31 | */ |
||
32 | private $decorator; |
||
33 | |||
34 | /** |
||
35 | * Operator. |
||
36 | * |
||
37 | * @var string|null |
||
38 | */ |
||
39 | private $operator; |
||
40 | |||
41 | /** |
||
42 | * Value. |
||
43 | * |
||
44 | * @var mixed |
||
45 | */ |
||
46 | private $value; |
||
47 | |||
48 | /** |
||
49 | * Constructor. |
||
50 | */ |
||
51 | public function __construct() { |
||
54 | |||
55 | /** |
||
56 | * {@inheritDoc} |
||
57 | */ |
||
58 | public function getDecorator(): ?QueryBuilderDecoratorInterface { |
||
61 | |||
62 | /** |
||
63 | * {@inheritDoc} |
||
64 | */ |
||
65 | public function getOperator(): ?string { |
||
68 | |||
69 | /** |
||
70 | * {@inheritDoc} |
||
71 | */ |
||
72 | public function getValue() { |
||
75 | |||
76 | /** |
||
77 | * Set the decorator. |
||
78 | * |
||
79 | * @param QueryBuilderDecoratorInterface|null $decorator The decorator. |
||
80 | * @return QueryBuilderRuleInterface Returns this rule. |
||
81 | */ |
||
82 | public function setDecorator(?QueryBuilderDecoratorInterface $decorator): QueryBuilderRuleInterface { |
||
86 | |||
87 | /** |
||
88 | * Set the operator. |
||
89 | * |
||
90 | * @param string|null $operator The operator. |
||
91 | * @return QueryBuilderRuleInterface Returns this rule. |
||
92 | * @throws InvalidArgumentException Throws an invalid argument exception if the operator is invalid. |
||
93 | */ |
||
94 | public function setOperator(?string $operator): QueryBuilderRuleInterface { |
||
101 | |||
102 | /** |
||
103 | * Set the value. |
||
104 | * |
||
105 | * @param mixed $value The value. |
||
106 | * @return QueryBuilderRuleInterface Returns this rule. |
||
107 | */ |
||
108 | public function setValue($value): QueryBuilderRuleInterface { |
||
112 | } |
||
113 |