danog\MadelineProto\Shutdown
Author: Daniil Gentili daniil@daniil.it
Class that controls script shutdown.
Method list:
init(): voidaddCallback(callable $callback, (null|string) $id = NULL): (int|string)removeCallback((null|string|int) $id): bool
Methods:
init(): void
Register shutdown function.
addCallback(callable $callback, (null|string) $id = NULL): (int|string)
Add a callback for script shutdown.
Parameters:
$callback:callableThe callback to set$id:(null|string)The optional callback ID
Return value: The callback ID
removeCallback((null|string|int) $id): bool
Remove a callback from the script shutdown callable list.
Parameters:
$id:(null|string|int)The optional callback ID
Return value: true if the callback was removed correctly, false otherwise
Generated by danog/phpdoc