PHP Class tad\WPBrowser\Console\Output\OutputDecorator

Show file Open project: lucatume/wp-browser

Protected Properties

Property Type Description
$output The decorated output.

Public Methods

Method Description
__construct ( Symfony\Component\Console\Output\OutputInterface $output ) OutputDecorator constructor.
getFormatter ( ) : Symfony\Component\Console\Formatter\OutputFormatterInterface Returns current output formatter instance.
getVerbosity ( ) : integer Gets the current verbosity of the output.
isDecorated ( ) : boolean Gets the decorated flag.
setDecorated ( boolean $decorated ) Sets the decorated flag.
setFormatter ( Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter ) Sets output formatter.
setVerbosity ( integer $level ) Sets the verbosity of the output.

Method Details

__construct() public method

OutputDecorator constructor.
public __construct ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

getFormatter() public method

Returns current output formatter instance.
public getFormatter ( ) : Symfony\Component\Console\Formatter\OutputFormatterInterface
return Symfony\Component\Console\Formatter\OutputFormatterInterface

getVerbosity() public method

Gets the current verbosity of the output.
public getVerbosity ( ) : integer
return integer The current level of verbosity (one of the VERBOSITY constants)

isDecorated() public method

Gets the decorated flag.
public isDecorated ( ) : boolean
return boolean true if the output will decorate messages, false otherwise

setDecorated() public method

Sets the decorated flag.
public setDecorated ( boolean $decorated )
$decorated boolean Whether to decorate the messages

setFormatter() public method

Sets output formatter.
public setFormatter ( Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter )
$formatter Symfony\Component\Console\Formatter\OutputFormatterInterface

setVerbosity() public method

Sets the verbosity of the output.
public setVerbosity ( integer $level )
$level integer The level of verbosity (one of the VERBOSITY constants)

Property Details

$output protected property

The decorated output.
protected $output