LockableTrait
Basic lock feature for commands.
Tags
Table of Contents
- $lock : LockInterface|null
- lock() : bool
- Locks a command.
- release() : mixed
- Releases the command lock if there is one.
Properties
$lock
private
LockInterface|null
$lock
Methods
lock()
Locks a command.
private
lock([string|null $name = null ][, bool $blocking = false ]) : bool
Parameters
- $name : string|null = null
- $blocking : bool = false
Return values
bool —release()
Releases the command lock if there is one.
private
release() : mixed