src/LdapTools/LdapManager.php
protected function validateDomainName($domain)
    {
        if (!array_key_exists($domain, $this->domains)) {
            throw new InvalidArgumentException(sprintf(
                'Domain "%s" is not valid. Valid domains are: %s',
                $domain,
                implode(', ', array_keys($this->domains))
            ));
        }
    }
protected function validateDomainName($domain)
    {
        if (!array_key_exists($domain, $this->domains)) {
            throw new InvalidArgumentException(sprintf(
                'Domain "%s" is not valid. Valid domains are: %s',
                $domain,
                implode(', ', array_keys($this->domains))
            ));
        }
    }
protected function validateDomainName ( $ domain ) { if ( ! array_key_exists ( $ domain , $ this -> domains ) ) { throw new InvalidArgumentException ( sprintf ( 'Domain "%s" is not valid. Valid domains are: %s' , $ domain , implode ( ', ' , array_keys ( $ this -> domains ) ) ) ) ; } }
Validates that the domain name actually exists.

@param string $domain
Validates that the domain name actually exists .