type() публичный Метод

Specify $type criteria for the current field.
См. также: Builder::type()
См. также: http://docs.mongodb.org/manual/reference/operator/type/
public type ( integer $type )
$type integer
Пример #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;
 }
Пример #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;
 }