trait Prohibitable (View source)

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.

bool
isProhibited(bool $quiet = false)

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

Details

static void prohibit(bool $prohibit = true)

Indicate whether the command should be prohibited from running.

Parameters

bool $prohibit

Return Value

void

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