Pinq\Expressions\UnaryOperationExpression::getOperator PHP Method

getOperator() public method

public getOperator ( ) : string
return string
    public function getOperator()
    {
        return $this->operator;
    }

Usage Example

 protected function visitUnaryOperation(UnaryOperationExpression $expression)
 {
     $operator = $expression->getOperator();
     if (!isset($this->unaryOperators[$operator])) {
         throw new PinqDemoSqlException("Unary operator not supported: {$operator}");
     }
     $this->sql .= '(';
     $this->sql .= $this->unaryOperators[$operator];
     $this->walk($expression->getOperand());
     $this->sql .= ')';
 }
All Usage Examples Of Pinq\Expressions\UnaryOperationExpression::getOperator