src/LdapTools/Configuration.php
public function getDomainConfiguration($domain = null)
    {
        if ($domain && isset($this->domains[$domain])) {
            return $this->domains[$domain];
        } elseif ($domain) {
            throw new InvalidArgumentException(sprintf('Domain "%s" not found.', $domain));
        } else {
            return $this->domains;
        }
    }
public function getDomainConfiguration($domain = null)
    {
        if ($domain && isset($this->domains[$domain])) {
            return $this->domains[$domain];
        } elseif ($domain) {
            throw new InvalidArgumentException(sprintf('Domain "%s" not found.', $domain));
        } else {
            return $this->domains;
        }
    }
public function getDomainConfiguration ( $ domain = null ) { if ( $ domain && isset ( $ this -> domains [ $ domain ] ) ) { return $ this -> domains [ $ domain ] ; } elseif ( $ domain ) { throw new InvalidArgumentException ( sprintf ( 'Domain "%s" not found.' , $ domain ) ) ; } else { return $ this -> domains ; } }
Get the DomainConfiguration for a specific domain, or an array of all DomainConfiguration objects if none is
specified.

@param null|string $domain
@return DomainConfiguration[]|DomainConfiguration
Get the DomainConfiguration for a specific domain or an array of all DomainConfiguration objects if none is specified .