Exemplo n.º 1
0
 /**
  * Creates an instance of binary expression node, representing the construction: subject - value
  *
  * @param mixed $subject logical subject
  * @param mixed $value value to subtract from the subject
  *
  * SQL example:
  * @code
  * // "cost" - 2
  * Expression::sub("cost", 2);
  * @endcode
  * @return BinaryExpression
  */
 static function sub($subject, $value)
 {
     return new BinaryExpression($subject, BinaryLogicalOperator::substract(), $value);
 }