trait Prohibitable

Properties

static protected bool $prohibitedFromRunning

Indicates if the command should be prohibited from running.

Methods

static void
prohibit(bool $prohibit = true)

Indicate whether the command should be prohibited from running.

static void
flushState()

Flush all static state.

bool
isProhibited(bool $quiet = false)

Determine if the command is prohibited from running and display a warning if so.

Details

at line 22
static void prohibit(bool $prohibit = true)

Indicate whether the command should be prohibited from running.

The prohibition flag persists in a static property for the worker lifetime and affects every subsequent execution of this command.

Parameters

bool $prohibit

Return Value

void

at line 31
static void flushState()

Flush all static state.

Return Value

void

at line 39
protected bool isProhibited(bool $quiet = false)

Determine if the command is prohibited from running and display a warning if so.

Parameters

bool $quiet

Return Value

bool