コード例 #1
0
 /**
  * Creates an instance of binary expression node, representing the construction: subject / value
  *
  * @param mixed $subject logical subject
  * @param mixed $value value to divide the subject
  *
  * SQL example:
  * @code
  * // "cost" / 2
  * Expression::div("cost", 2);
  * @endcode
  * @return BinaryExpression
  */
 static function div($subject, $value)
 {
     return new BinaryExpression($subject, BinaryLogicalOperator::divide(), $value);
 }