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