function toDialectString(IDialect $dialect) { $compiledSlices = array(); $compiledSlices[] = $this->operator->toDialectString($dialect); $compiledSlices[] = '('; $compiledSlices[] = $this->subject->toDialectString($dialect); $compiledSlices[] = ')'; $compiledString = join(' ', $compiledSlices); return $compiledString; }
/** * Creates an instance of binary expression node, representing the construction: -subject * * @param mixed $subject logical subject * @return PrefixUnaryExpression */ static function negative($subject) { return new PrefixUnaryExpression(PrefixUnaryLogicalOperator::minus(), $subject); }