src/LdapTools/Operation/QueryOperation.php
public function setScope($scope)
    {
        if (!in_array($scope, self::SCOPE)) {
            throw new LdapQueryException(sprintf(
                'Scope type "%s" is invalid. See the QueryOperation::SCOPE[] constant for valid types.', $scope
            ));
        }
        $this->properties['scope'] = $scope;

        return $this;
    }
public function setScope($scope)
    {
        if (!in_array($scope, self::SCOPE)) {
            throw new LdapQueryException(sprintf(
                'Scope type "%s" is invalid. See the QueryOperation::SCOPE[] constant for valid types.', $scope
            ));
        }
        $this->properties['scope'] = $scope;

        return $this;
    }
public function setScope ( $ scope ) { if ( ! in_array ( $ scope , self :: SCOPE ) ) { throw new LdapQueryException ( sprintf ( 'Scope type "%s" is invalid. See the QueryOperation::SCOPE[] constant for valid types.' , $ scope ) ) ; } $ this -> properties [ 'scope' ] = $ scope ; return $ this ; }
Set the scope for the LDAP query operation.

@param $scope
@return $this
@throws LdapQueryException
Set the scope for the LDAP query operation .