Example #1
0
 /**
  * Creates an instance of binary expression node, representing the construction: subject IS TRUE
  *
  * @param mixed $subject logical subject
  *
  * SQL example:
  * @code
  * // "hasSmth" IS TRUE
  * Expression::isTrue("hasSmth");
  * @endcode
  * @return UnaryPostfixExpression
  */
 static function isTrue($subject)
 {
     return new UnaryPostfixExpression($subject, UnaryPostfixLogicalOperator::isTrue());
 }