vB_Shutdown
in package
Uses
vB_Trait_NoSerialize
Class to handle shutdown
Table of Contents
Methods
- __serialize() : array<string|int, mixed>
- __sleep() : array<string|int, mixed>
- __unserialize() : void
- __wakeup() : void
- add() : void
- Add callback to be executed at shutdown
- instance() : vB_Shutdown
- Returns singleton instance of self.
- setCalled() : void
- shutdown() : mixed
Methods
__serialize()
public
__serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>__sleep()
public
__sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>__unserialize()
public
__unserialize(array<string|int, mixed> $serialized) : void
Parameters
- $serialized : array<string|int, mixed>
__wakeup()
public
__wakeup() : void
add()
Add callback to be executed at shutdown
public
add(callable $callback) : void
Parameters
- $callback : callable
-
- Call back to call on shutdown
instance()
Returns singleton instance of self.
public
static instance() : vB_Shutdown
Return values
vB_ShutdownsetCalled()
public
setCalled() : void
shutdown()
public
shutdown() : mixed