PHP Class SensioLabs\Deptrac\OutputFormatterFactory

显示文件 Open project: sensiolabs-de/deptrac Class Usage Examples

Protected Properties

Property Type Description
$formatters SensioLabs\Deptrac\OutputFormatter\OutputFormatterInterface[]

Public Methods

Method Description
__construct ( array $formatters )
getActiveFormatters ( Symfony\Component\Console\Input\InputInterface $input ) : SensioLabs\Deptrac\OutputFormatter\OutputFormatterInterface[]
getFormatterByName ( $name ) : SensioLabs\Deptrac\OutputFormatter\OutputFormatterInterface
getFormatterOptions ( ) : Symfony\Component\Console\Input\InputOption[]
getOutputFormatterInput ( SensioLabs\Deptrac\OutputFormatter\OutputFormatterInterface $outputFormatter, Symfony\Component\Console\Input\InputInterface $input ) : OutputFormatterInput

Private Methods

Method Description
isFormatterActive ( SensioLabs\Deptrac\OutputFormatter\OutputFormatterInterface $formatter, Symfony\Component\Console\Input\InputInterface $input ) : boolean

Method Details

__construct() public method

public __construct ( array $formatters )
$formatters array

getActiveFormatters() public method

public getActiveFormatters ( Symfony\Component\Console\Input\InputInterface $input ) : SensioLabs\Deptrac\OutputFormatter\OutputFormatterInterface[]
$input Symfony\Component\Console\Input\InputInterface
return SensioLabs\Deptrac\OutputFormatter\OutputFormatterInterface[]

getFormatterByName() public method

public getFormatterByName ( $name ) : SensioLabs\Deptrac\OutputFormatter\OutputFormatterInterface
$name
return SensioLabs\Deptrac\OutputFormatter\OutputFormatterInterface

getFormatterOptions() public method

public getFormatterOptions ( ) : Symfony\Component\Console\Input\InputOption[]
return Symfony\Component\Console\Input\InputOption[]

getOutputFormatterInput() public method

public getOutputFormatterInput ( SensioLabs\Deptrac\OutputFormatter\OutputFormatterInterface $outputFormatter, Symfony\Component\Console\Input\InputInterface $input ) : OutputFormatterInput
$outputFormatter SensioLabs\Deptrac\OutputFormatter\OutputFormatterInterface
$input Symfony\Component\Console\Input\InputInterface
return SensioLabs\Deptrac\OutputFormatter\OutputFormatterInput

Property Details

$formatters protected_oe property

protected OutputFormatterInterface[],SensioLabs\Deptrac\OutputFormatter $formatters
return SensioLabs\Deptrac\OutputFormatter\OutputFormatterInterface[]