Doctrine\MongoDB\Aggregation\Stage\Operator::let PHP Method

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/
See also: Expr::let
public let ( mixed | Expr $vars, mixed | Expr $in )
$vars mixed | Doctrine\MongoDB\Aggregation\Expr 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 | Doctrine\MongoDB\Aggregation\Expr The expression to evaluate.
    public function let($vars, $in)
    {
        $this->expr->let($vars, $in);
        return $this;
    }