| Current Path : /opt/nginxhttpd_/src/Traits/ |
| Current File : //opt/nginxhttpd_/src/Traits/VerboseProcessor.php |
<?php
namespace App\Traits;
use Symfony\Component\Console\Output\OutputInterface;
trait VerboseProcessor
{
public function setVerbosity(bool $verbosity){
$this->verbosity = $verbosity;
}
public function setOutput(OutputInterface $output){
$this->output = $output;
}
protected function debug($msg){
if(!is_null($this->output) && $this->verbosity){
$this->output->writeln($msg);
}
}
}