public function toOperator(array $filter) { if (empty($filter)) { throw new InvalidArgumentException('Cannot parse an empty array to an LDAP filter operator.'); } return $this->getOperatorForArray($filter); }