src/Budkit/Helper/Object.php
final public function getError($i = null, $toString = true)
    {

        // Find the error
        if ($i === null) {
            // Default, return the last message
            $error = end(self::$errors);
        } else
            if (!array_key_exists($i, self::$errors)) {
                // If $i has been specified but does not exist, return false
                return false;
            } else {
                $error = self::$errors[$i];
            }

        return $error;
    }
final public function getError($i = null, $toString = true)
    {

        // Find the error
        if ($i === null) {
            // Default, return the last message
            $error = end(self::$errors);
        } else
            if (!array_key_exists($i, self::$errors)) {
                // If $i has been specified but does not exist, return false
                return false;
            } else {
                $error = self::$errors[$i];
            }

        return $error;
    }
final public function getError ( $ i = null , $ toString = true ) { // Find the error if ( $ i === null ) { // Default, return the last message $ error = end ( self :: $ errors ) ; } else if ( ! array_key_exists ( $ i , self :: $ errors ) ) { // If $i has been specified but does not exist, return false return false ; } else { $ error = self :: $ errors [ $ i ] ; } return $ error ; }
Returns a referenced error

@param type $i
@param type $toString
@return type
Returns a referenced error