Esempio 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 match the subject
  *
  * SQL example:
  * @code
  * // "id" = 1
  * Expression::eq("id", 1);
  * @endcode
  * @return BinaryExpression
  */
 static function eq($subject, $value)
 {
     return new BinaryExpression($subject, BinaryLogicalOperator::eq(), $value);
 }