LdapTools\DomainConfiguration::setServers PHP Метод

setServers() публичный Метод

Set the LDAP servers as an array of names or IP addresses.
public setServers ( array $servers )
$servers array
    public function setServers(array $servers)
    {
        $this->config['servers'] = $servers;
        return $this;
    }

Usage Example

Пример #1
0
 function it_should_have_a_page_size_as_specified_from_the_config()
 {
     $config = new DomainConfiguration('example.com');
     $config->setServers(['test'])->setBaseDn('dc=example,dc=local')->setLazyBind(true)->setPageSize(250);
     $this->beConstructedWith($config);
     $this->getConfig()->getPageSize()->shouldBeEqualTo(250);
 }
All Usage Examples Of LdapTools\DomainConfiguration::setServers