public function getArguments()
{
$args = [$this->properties['baseDn'], $this->getLdapFilter(), $this->properties['attributes'], 0];
if (empty($args[1])) {
throw new LdapQueryException('The filter for the LDAP query cannot be empty.');
}
if ($this->properties['sizeLimit'] && !$this->properties['usePaging']) {
array_push($args, $this->properties['sizeLimit']);
}
return $args;
}