public function onUnaryExpression($expressionType, $child)
    {
        $type = $this->unpackExpressionType($expressionType);
        switch ($type) {
            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)
    {
        $type = $this->unpackExpressionType($expressionType);
        switch ($type) {
            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 ) { $ type = $ this -> unpackExpressionType ( $ expressionType ) ; switch ( $ type ) { 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.

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

@return string
Call - back for unary expression .