function toDialectString(IDialect $dialect) { $compiledSlices = array(); $compiledSlices[] = '('; $compiledSlices[] = $this->subject->toDialectString($dialect); $compiledSlices[] = ')'; $compiledSlices[] = $this->operator->toDialectString($dialect); $compiledString = join(' ', $compiledSlices); return $compiledString; }
/** * Creates an instance of binary expression node, representing the construction: subject IS FALSE * * @param mixed $subject logical subject * * SQL example: * @code * // "hasSmth" IS FALSE * Expression::isFalse("hasSmth"); * @endcode * @return UnaryPostfixExpression */ static function isFalse($subject) { return new UnaryPostfixExpression($subject, UnaryPostfixLogicalOperator::isFalse()); }