debug/handlers/Exception.php
public static function register(interfaces\handlers\Exception $handler = null) : Exception
    {
        set_exception_handler([$handler ?: $handler = new static, 'handle']);

        return $handler;
    }
public static function register(interfaces\handlers\Exception $handler = null) : Exception
    {
        set_exception_handler([$handler ?: $handler = new static, 'handle']);

        return $handler;
    }
public static function register ( interfaces \ handlers \ Exception $ handler = null ) : Exception { set_exception_handler ( [ $ handler ? : $ handler = new static , 'handle' ] ) ; return $ handler ; }
Registers the given or this Exception Handler with PHP.

@param   interfaces\handlers\Exception   $handler    An optional, already instantiated Exception Handler
instance. If none is given, a new one will be
instantiated.
@return  Exception                                   An instance of the Exception Handler which got registered.
Either the same as the given one or if none was given,
a new instance.
Registers the given or this Exception Handler with PHP .