OutputInterface::VERBOSITY_NORMAL, VerbosityThresholdInterface::VERBOSITY_VERBOSE => OutputInterface::VERBOSITY_VERBOSE, VerbosityThresholdInterface::VERBOSITY_VERY_VERBOSE => OutputInterface::VERBOSITY_VERY_VERBOSE, VerbosityThresholdInterface::VERBOSITY_DEBUG => OutputInterface::VERBOSITY_DEBUG, ]; public function verbosityMeetsThreshold($verbosityThreshold) { if (!isset($this->verbosityMap[$verbosityThreshold])) { return true; } $verbosityThreshold = $this->verbosityMap[$verbosityThreshold]; $verbosity = $this->output()->getVerbosity(); return $verbosity >= $verbosityThreshold; } public function writeMessage($message) { $this->output()->write($message); } }