eee
This commit is contained in:
@@ -7,54 +7,60 @@ interface ContextInterface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
* @param int|null $coroutineId
|
||||
* @return mixed
|
||||
*/
|
||||
public static function set(string $key, mixed $value, ?int $coroutineId = null): mixed;
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param mixed|null $defaultValue
|
||||
* @param int|null $coroutineId
|
||||
* @return mixed
|
||||
*/
|
||||
public static function get(string $key, mixed $defaultValue = null, ?int $coroutineId = null): mixed;
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param int|null $coroutineId
|
||||
* @return mixed
|
||||
*/
|
||||
public static function exists(string $key, ?int $coroutineId = null): bool;
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public static function inCoroutine(): bool;
|
||||
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param int|null $coroutineId
|
||||
* @return void
|
||||
*/
|
||||
public static function remove(string $key, ?int $coroutineId = null): void;
|
||||
/**
|
||||
* @param string $key
|
||||
* @param mixed $value
|
||||
* @param int|null $coroutineId
|
||||
* @return mixed
|
||||
*/
|
||||
public static function set(string $key, mixed $value, ?int $coroutineId = null): mixed;
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param mixed|null $defaultValue
|
||||
* @param int|null $coroutineId
|
||||
* @return mixed
|
||||
*/
|
||||
public static function get(string $key, mixed $defaultValue = null, ?int $coroutineId = null): mixed;
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param int|null $coroutineId
|
||||
* @return mixed
|
||||
*/
|
||||
public static function exists(string $key, ?int $coroutineId = null): bool;
|
||||
|
||||
|
||||
/**
|
||||
* @param string $id
|
||||
* @param int $value
|
||||
* @param int|null $coroutineId
|
||||
* @return int
|
||||
*/
|
||||
public static function increment(string $id, int $value = 1, ?int $coroutineId = null): int;
|
||||
/**
|
||||
* @param string $key
|
||||
* @param int|null $coroutineId
|
||||
* @return void
|
||||
*/
|
||||
public static function remove(string $key, ?int $coroutineId = null): void;
|
||||
|
||||
|
||||
/**
|
||||
* @param string $id
|
||||
* @param int $value
|
||||
* @param int|null $coroutineId
|
||||
* @return int
|
||||
*/
|
||||
public static function decrement(string $id, int $value = 1, ?int $coroutineId = null): int;
|
||||
/**
|
||||
* @param string $id
|
||||
* @param int $value
|
||||
* @param int|null $coroutineId
|
||||
* @return int
|
||||
*/
|
||||
public static function increment(string $id, int $value = 1, ?int $coroutineId = null): int;
|
||||
|
||||
|
||||
/**
|
||||
* @param string $id
|
||||
* @param int $value
|
||||
* @param int|null $coroutineId
|
||||
* @return int
|
||||
*/
|
||||
public static function decrement(string $id, int $value = 1, ?int $coroutineId = null): int;
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user