Back to CliOutput class

Method getProcessor

public \Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface
getProcessor
()
Get a processor
Returns
  • \Joomla\CMS\Application\CLI\Output\Processor\ProcessorInterface
Since
  • 4.0.0
-
  • \RuntimeException
Class: CliOutput
Project: Joomla

Method getProcessor - Source code

/**
 * Get a processor
 *
 * @return  ProcessorInterface
 *
 * @since   4.0.0
 * @throws  \RuntimeException
 */
public function getProcessor()
{
    if ($this->processor) {
        return $this->processor;
    }
    throw new \RuntimeException('A ProcessorInterface object has not been set.');
}