PHP Class Psecio\Versionscan\Command\Output

Show file Open project: psecio/versionscan

Public Methods

Method Description
__construct ( Symfony\Component\Console\Output\OutputInterface $output, array $options = [] ) Init the object and set output and options (if given)
getOption ( string $optionName ) : mixed Get a single option
getOptions ( ) : array Get the current set of options
getOutput ( ) : object Get the Output instance
render ( array $results, Command $command ) Render the results of the scan
setOptions ( array $options ) Set the output options
setOutput ( Symfony\Component\Console\Output\OutputInterface $output ) Set the Output object instance

Method Details

__construct() public method

Init the object and set output and options (if given)
public __construct ( Symfony\Component\Console\Output\OutputInterface $output, array $options = [] )
$output Symfony\Component\Console\Output\OutputInterface Output object
$options array Output options

getOption() public method

Get a single option
public getOption ( string $optionName ) : mixed
$optionName string Name of option to find
return mixed Either the option value if found or null

getOptions() public method

Get the current set of options
public getOptions ( ) : array
return array Options set

getOutput() public method

Get the Output instance
public getOutput ( ) : object
return object Output instance

render() abstract public method

Render the results of the scan
abstract public render ( array $results, Command $command )
$results array Set of scan results
$command Symfony\Component\Console\Command\Command

setOptions() public method

Set the output options
public setOptions ( array $options )
$options array Set of options

setOutput() public method

Set the Output object instance
public setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface Object instance