type() public method

Specify $type criteria for the current field.
See also: Builder::type()
See also: http://docs.mongodb.org/manual/reference/operator/type/
public type ( integer $type )
$type integer
Esempio n. 1
0
 /**
  * Specify $type criteria for the current field.
  *
  * @see Expr::type()
  * @see http://docs.mongodb.org/manual/reference/operator/type/
  * @param integer $type
  * @return self
  */
 public function type($type)
 {
     $this->expr->type($type);
     return $this;
 }
Esempio n. 2
0
 /**
  * Specify $type criteria for the current field.
  *
  * @see Expr::type()
  * @see http://docs.mongodb.org/manual/reference/operator/type/
  * @param integer $type
  * @return $this
  */
 public function type($type)
 {
     $this->query->type($type);
     return $this;
 }