VerbosityThresholdTrait
trait VerbosityThresholdTrait (View source)
Task input/output methods. TaskIO is 'used' in BaseTask, so any task that extends this class has access to all of the methods here.
printTaskInfo, printTaskSuccess, and printTaskError are the three primary output methods that tasks are encouraged to use. Tasks should avoid using the IO trait output methods.
Properties
protected OutputAdapterInterface | $outputAdapter | ||
protected int | $verbosityThreshold |
Methods
Required verbosity level before any TaskIO output will be produced.
No description
No description
No description
No description
Print a message if the selected verbosity level is over this task's verbosity threshold.
Details
$this
setVerbosityThreshold(int $verbosityThreshold)
Required verbosity level before any TaskIO output will be produced.
e.g. OutputInterface::VERBOSITY_VERBOSE
int
verbosityThreshold()
No description
setOutputAdapter(OutputAdapterInterface $outputAdapter)
No description
OutputAdapterInterface
outputAdapter()
No description
bool
hasOutputAdapter()
No description
bool
verbosityMeetsThreshold()
No description
writeMessage(string $message)
Print a message if the selected verbosity level is over this task's verbosity threshold.