let() public method

Binds variables for use in the specified expression, and returns the result of the expression.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/let/
public let ( mixed | self $vars, mixed | self $in )
$vars mixed | self Assignment block for the variables accessible in the in expression. To assign a variable, specify a string for the variable name and assign a valid expression for the value.
$in mixed | self The expression to evaluate.
Example #1
0
 /**
  * Binds variables for use in the specified expression, and returns the
  * result of the expression.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/let/
  * @see Expr::let
  * @param mixed|Expr $vars Assignment block for the variables accessible in the in expression. To assign a variable, specify a string for the variable name and assign a valid expression for the value.
  * @param mixed|Expr $in   The expression to evaluate.
  * @return self
  */
 public function let($vars, $in)
 {
     $this->expr->let($vars, $in);
     return $this;
 }