LdapTools\Query\Builder\FilterBuilder::bAnd PHP Method

bAnd() public method

A logical AND operator.
public bAnd ( $op ) : bAnd
return LdapTools\Query\Operator\bAnd
    public function bAnd(...$op)
    {
        return new bAnd(...$op);
    }

Usage Example

Example #1
0
 /**
  * Adds a base 'bAnd' operator for the convenience 'where', 'andWhere' methods only if it does not already exist.
  *
  * @throws \LdapTools\Exception\LdapQueryException
  */
 protected function addBaseAndIfNotExists()
 {
     if (!$this->baseAnd) {
         $this->baseAnd = $this->filterBuilder->bAnd();
         $this->operation->getFilter()->add($this->baseAnd);
     }
 }
All Usage Examples Of LdapTools\Query\Builder\FilterBuilder::bAnd