LockableTrait
Basic lock feature for commands.
Tags
Table of Contents
Properties
- $lock : LockInterface|null
Methods
Properties
$lock
private
LockInterface|null
$lock
= null
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
boolrelease()
Releases the command lock if there is one.
private
release() : void