src/POData/Providers/Expression/PHPExpressionProvider.php
/**
     * Call-back for unary expression
     * 
     * @param ExpressionType $expressionType The type of unary expression
     * @param string         $child          The child expression
     * 
     * @return string
     */
Call-back for unary expression

@param ExpressionType $expressionType The type of unary expression
@param string         $child          The child expression

@return string
Call - back for unary expression @param ExpressionType $expressionType The type of unary expression @param string $child The child expression @return string
public function onUnaryExpression($expressionType, $child)
    {
        switch($expressionType) {
	        case ExpressionType::NEGATE:
	            return $this->_prepareUnaryExpression(self::NEGATE, $child);
	        case ExpressionType::NOT_LOGICAL:
	            return $this->_prepareUnaryExpression(self::LOGICAL_NOT, $child);
	        default:
	            throw new \InvalidArgumentException('onUnaryExpression');
        }
    }
public function onUnaryExpression ( $ expressionType , $ child ) { switch ( $ expressionType ) { case ExpressionType :: NEGATE : return $ this -> _prepareUnaryExpression ( self :: NEGATE , $ child ) ; case ExpressionType :: NOT_LOGICAL : return $ this -> _prepareUnaryExpression ( self :: LOGICAL_NOT , $ child ) ; default : throw new \ InvalidArgumentException ( 'onUnaryExpression' ) ; } }
Call-back for unary expression
Call - back for unary expression