literal() public method

Returns a value without parsing. Use for values that the aggregation pipeline may interpret as an expression.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/literal/
public literal ( mixed | self $value )
$value mixed | self
Beispiel #1
0
 /**
  * Returns a value without parsing. Use for values that the aggregation
  * pipeline may interpret as an expression.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/literal/
  * @see Expr::literal
  * @param mixed|Expr $value
  * @return self
  */
 public function literal($value)
 {
     $this->expr->literal($value);
     return $this;
 }