LdapTools\Connection\LdapConnectionInterface::getServer PHP Méthode

getServer() public méthode

Get the LDAP server that the connection is currently connected to.
public getServer ( ) : string | null
Résultat string | null
    public function getServer();

Usage Example

 function let(LdapConnectionInterface $connection, EventDispatcherInterface $dispatcher, LdapLoggerInterface $logger)
 {
     $connection->getConfig()->willReturn(new DomainConfiguration('example.local'));
     $connection->getConnection()->willReturn(null);
     $connection->isBound()->willReturn(true);
     $connection->getServer()->willReturn('foo');
     $connection->getIdleTime()->willReturn(1);
     $this->setConnection($connection);
     $this->setEventDispatcher($dispatcher);
     $this->setLogger($logger);
 }
All Usage Examples Of LdapTools\Connection\LdapConnectionInterface::getServer