Doctrine\MongoDB\Query\Expr::bitsAnySet PHP Method

bitsAnySet() public method

Matches documents where any of the bit positions given by the query are set.
See also: Builder::bitsAnySet()
See also: https://docs.mongodb.org/manual/reference/operator/query/bitsAnySet/
public bitsAnySet ( integer | array | MongoBinData $value )
$value integer | array | MongoBinData
    public function bitsAnySet($value)
    {
        $this->requiresCurrentField();
        return $this->operator('$bitsAnySet', $value);
    }

Usage Example

示例#1
0
 /**
  * Matches documents where any of the bit positions given by the query are
  * set.
  *
  * @see Expr::bitsAnySet()
  * @see https://docs.mongodb.org/manual/reference/operator/query/bitsAnySet/
  * @param int|array|\MongoBinData $value
  * @return $this
  */
 public function bitsAnySet($value)
 {
     $this->expr->bitsAnySet($value);
     return $this;
 }