services/NorthWind/NorthWindDSExpressionProvider.php 1 location
|
@@ 182-194 (lines=13) @@
|
| 179 |
|
* |
| 180 |
|
* @return string |
| 181 |
|
*/ |
| 182 |
|
public function onUnaryExpression($expressionType, $child) |
| 183 |
|
{ |
| 184 |
|
switch($expressionType) { |
| 185 |
|
case ExpressionType::NEGATE: |
| 186 |
|
return $this->_prepareUnaryExpression(self::NEGATE, $child); |
| 187 |
|
break; |
| 188 |
|
case ExpressionType::NOT_LOGICAL: |
| 189 |
|
return $this->_prepareUnaryExpression(self::LOGICAL_NOT, $child); |
| 190 |
|
break; |
| 191 |
|
default: |
| 192 |
|
throw new \InvalidArgumentException('onUnaryExpression'); |
| 193 |
|
} |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
/** |
| 197 |
|
* Call-back for constant expression |
services/WordPress/WordPressDSExpressionProvider.php 1 location
|
@@ 178-190 (lines=13) @@
|
| 175 |
|
* |
| 176 |
|
* @return string |
| 177 |
|
*/ |
| 178 |
|
public function onUnaryExpression($expressionType, $child) |
| 179 |
|
{ |
| 180 |
|
switch($expressionType) { |
| 181 |
|
case ExpressionType::NEGATE: |
| 182 |
|
return $this->_prepareUnaryExpression(self::NEGATE, $child); |
| 183 |
|
break; |
| 184 |
|
case ExpressionType::NOT_LOGICAL: |
| 185 |
|
return $this->_prepareUnaryExpression(self::LOGICAL_NOT, $child); |
| 186 |
|
break; |
| 187 |
|
default: |
| 188 |
|
throw new \InvalidArgumentException('onUnaryExpression'); |
| 189 |
|
} |
| 190 |
|
} |
| 191 |
|
|
| 192 |
|
/** |
| 193 |
|
* Call-back for constant expression |
src/POData/Providers/Expression/MySQLExpressionProvider.php 1 location
|
@@ 174-186 (lines=13) @@
|
| 171 |
|
* |
| 172 |
|
* @return string |
| 173 |
|
*/ |
| 174 |
|
public function onUnaryExpression($expressionType, $child) |
| 175 |
|
{ |
| 176 |
|
switch($expressionType) { |
| 177 |
|
case ExpressionType::NEGATE: |
| 178 |
|
return $this->_prepareUnaryExpression(self::NEGATE, $child); |
| 179 |
|
|
| 180 |
|
case ExpressionType::NOT_LOGICAL: |
| 181 |
|
return $this->_prepareUnaryExpression(self::LOGICAL_NOT, $child); |
| 182 |
|
|
| 183 |
|
default: |
| 184 |
|
throw new \InvalidArgumentException('onUnaryExpression'); |
| 185 |
|
} |
| 186 |
|
} |
| 187 |
|
|
| 188 |
|
/** |
| 189 |
|
* Call-back for constant expression |
src/POData/Providers/Expression/PHPExpressionProvider.php 1 location
|
@@ 184-196 (lines=13) @@
|
| 181 |
|
* |
| 182 |
|
* @return string |
| 183 |
|
*/ |
| 184 |
|
public function onUnaryExpression($expressionType, $child) |
| 185 |
|
{ |
| 186 |
|
switch($expressionType) { |
| 187 |
|
case ExpressionType::NEGATE: |
| 188 |
|
return $this->_prepareUnaryExpression(self::NEGATE, $child); |
| 189 |
|
|
| 190 |
|
case ExpressionType::NOT_LOGICAL: |
| 191 |
|
return $this->_prepareUnaryExpression(self::LOGICAL_NOT, $child); |
| 192 |
|
|
| 193 |
|
default: |
| 194 |
|
throw new \InvalidArgumentException('onUnaryExpression'); |
| 195 |
|
} |
| 196 |
|
} |
| 197 |
|
|
| 198 |
|
/** |
| 199 |
|
* Call-back for constant expression |