LdapTools\Connection\LastErrorStrategy::getExtendedErrorNumber PHP Method

getExtendedErrorNumber() public method

Is there a generic way to do this that isn't directory implementation specific? The constant LDAP_OPT_ERROR_NUMBER seems like the place to start, but it is not documented anywhere. So currently this will only return the last generic error number unless overridden.
public getExtendedErrorNumber ( ) : integer
return integer
    public function getExtendedErrorNumber()
    {
        return $this->getErrorNumber();
    }