verbosityThreshold = $verbosityThreshold; return $this; } public function verbosityThreshold() { return $this->verbosityThreshold; } public function setOutputAdapter(OutputAdapterInterface $outputAdapter) { $this->outputAdapter = $outputAdapter; } /** * @return OutputAdapterInterface */ public function outputAdapter() { return $this->outputAdapter; } public function hasOutputAdapter() { return isset($this->outputAdapter); } public function verbosityMeetsThreshold() { if ($this->hasOutputAdapter()) { return $this->outputAdapter()->verbosityMeetsThreshold($this->verbosityThreshold()); } return true; } /** * Print a message if the selected verbosity level is over this task's * verbosity threshhold. */ public function writeMessage($message) { if (!$this->verbosityMeetsThreshold()) { return; } $this->outputAdapter()->writeMessage($message); } }