Scalr\Net\Ldap\LdapClient::getEmail PHP Method

getEmail() public method

Gets the user email
public getEmail ( ) : string
return string Returns user email address
    public function getEmail()
    {
        if ($this->email) {
            return $this->email;
        } else {
            if ($this->uid) {
                return $this->uid;
            } else {
                return $this->username;
            }
        }
    }