| @@ 80-92 (lines=13) @@ | ||
| 77 | * |
|
| 78 | * @return string |
|
| 79 | */ |
|
| 80 | public function onLogicalExpression($expressionType, $left, $right) |
|
| 81 | { |
|
| 82 | switch ($expressionType) { |
|
| 83 | case ExpressionType::AND_LOGICAL: |
|
| 84 | return $this->_prepareBinaryExpression(self::LOGICAL_AND, $left, $right); |
|
| 85 | ||
| 86 | case ExpressionType::OR_LOGICAL: |
|
| 87 | return $this->_prepareBinaryExpression(self::LOGICAL_OR, $left, $right); |
|
| 88 | ||
| 89 | default: |
|
| 90 | throw new \InvalidArgumentException('onLogicalExpression'); |
|
| 91 | } |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * Call-back for arithmetic expression. |
|
| @@ 89-101 (lines=13) @@ | ||
| 86 | * |
|
| 87 | * @return string |
|
| 88 | */ |
|
| 89 | public function onLogicalExpression($expressionType, $left, $right) |
|
| 90 | { |
|
| 91 | switch ($expressionType) { |
|
| 92 | case ExpressionType::AND_LOGICAL: |
|
| 93 | return $this->_prepareBinaryExpression(self::LOGICAL_AND, $left, $right); |
|
| 94 | ||
| 95 | case ExpressionType::OR_LOGICAL: |
|
| 96 | return $this->_prepareBinaryExpression(self::LOGICAL_OR, $left, $right); |
|
| 97 | ||
| 98 | default: |
|
| 99 | throw new \InvalidArgumentException('onLogicalExpression'); |
|
| 100 | } |
|
| 101 | } |
|
| 102 | ||
| 103 | /** |
|
| 104 | * Call-back for arithmetic expression. |
|