|
static | attach ($hashKey, $callback) |
|
static | clear ($hashKey) |
|
static | get ($hashKey) |
|
Class CallbackPool
Definition at line 12 of file CallbackPool.php.
◆ attach()
static attach |
( |
|
$hashKey, |
|
|
|
$callback |
|
) |
| |
|
static |
- Parameters
-
string | $hashKey | |
array | $callback | |
- Returns
- void
Definition at line 26 of file CallbackPool.php.
28 self::$commitCallbacks[$hashKey][] = $callback;
◆ clear()
- Parameters
-
- Returns
- void
Definition at line 35 of file CallbackPool.php.
37 self::$commitCallbacks[$hashKey] = [];
◆ get()
- Parameters
-
- Returns
- array
Definition at line 44 of file CallbackPool.php.
46 if (!isset(self::$commitCallbacks[$hashKey])) {
49 $callbacks = self::$commitCallbacks[$hashKey];
50 self::$commitCallbacks[$hashKey] = [];
The documentation for this class was generated from the following file: