HasJsonOption
Trait
Provides the standard JSON output options used by DevTools commands.
Methods
addJsonOption()
: static
Adds the standard JSON output options to the current command.
isJsonOutput()
: bool
Determines whether JSON output was requested.
isPrettyJsonOutput()
: bool
Determines whether pretty JSON output was requested.
Methods
Adds the standard JSON output options to the current command.
protected
addJsonOption() : static
Return values
static
Determines whether JSON output was requested.
protected
isJsonOutput(InputInterface
$input) : bool
Description
The pretty-json flag SHALL imply JSON output.
Parameters
$input
:
InputInterface
Return values
bool
Determines whether pretty JSON output was requested.
protected
isPrettyJsonOutput(InputInterface
$input) : bool
Parameters
$input
:
InputInterface
Return values
bool