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

bitsAllSet() public method

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

Usage Example

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