src/Connections/Ldap.php
public function getFirstEntry($searchResults)
    {
        if ($this->suppressErrors) {
            return @ldap_first_entry($this->getConnection(), $searchResults);
        }

        return ldap_first_entry($this->getConnection(), $searchResults);
    }
public function getFirstEntry($searchResults)
    {
        if ($this->suppressErrors) {
            return @ldap_first_entry($this->getConnection(), $searchResults);
        }

        return ldap_first_entry($this->getConnection(), $searchResults);
    }
public function getFirstEntry ( $ searchResults ) { if ( $ this -> suppressErrors ) { return @ ldap_first_entry ( $ this -> getConnection ( ) , $ searchResults ) ; } return ldap_first_entry ( $ this -> getConnection ( ) , $ searchResults ) ; }
Returns the first entry from the specified
search results.

@param $searchResults

@return resource
Returns the first entry from the specified search results .