etsis_Error::get_error_code ()

Retrieve first error code available.

Return: (string|int) Empty string, if no error codes.

Source file: app/src/Core/etsis_Error.php

View source



Source

    public function get_error_code() {
        $codes = $this->get_error_codes();
        
        if(empty($codes)) {
            return '';
        }
        
        return $codes[0];
    }
    

Changelog


User Contributed Notes

You must log in before being able to contribute a note.