PHP Class Webmozart\Console\Adapter\ArgsInput

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: implements Symfony\Component\Console\Input\InputInterface
Datei anzeigen Open project: webmozart/console Class Usage Examples

Public Methods

Method Description
__construct ( Webmozart\Console\Api\Args\RawArgs $rawArgs, Args $args = null ) Creates the adapter.
bind ( Symfony\Component\Console\Input\InputDefinition $definition )
getArgs ( ) : Args
getArgument ( $name )
getArguments ( )
getFirstArgument ( )
getOption ( $name )
getOptions ( )
getParameterOption ( $values, $default = false, $onlyParams = false )
getRawArgs ( ) : Webmozart\Console\Api\Args\RawArgs
hasArgument ( $name )
hasOption ( $name )
hasParameterOption ( $values, $onlyParams = false )
isInteractive ( )
setArgument ( $name, $value )
setInteractive ( $interactive )
setOption ( $name, $value )
validate ( )

Method Details

__construct() public method

Creates the adapter.
public __construct ( Webmozart\Console\Api\Args\RawArgs $rawArgs, Args $args = null )
$rawArgs Webmozart\Console\Api\Args\RawArgs The unparsed console arguments.
$args Webmozart\Console\Api\Args\Args The parsed console arguments.

bind() public method

public bind ( Symfony\Component\Console\Input\InputDefinition $definition )
$definition Symfony\Component\Console\Input\InputDefinition

getArgs() public method

public getArgs ( ) : Args
return Webmozart\Console\Api\Args\Args

getArgument() public method

public getArgument ( $name )

getArguments() public method

public getArguments ( )

getFirstArgument() public method

public getFirstArgument ( )

getOption() public method

public getOption ( $name )

getOptions() public method

public getOptions ( )

getParameterOption() public method

public getParameterOption ( $values, $default = false, $onlyParams = false )

getRawArgs() public method

public getRawArgs ( ) : Webmozart\Console\Api\Args\RawArgs
return Webmozart\Console\Api\Args\RawArgs

hasArgument() public method

public hasArgument ( $name )

hasOption() public method

public hasOption ( $name )

hasParameterOption() public method

public hasParameterOption ( $values, $onlyParams = false )

isInteractive() public method

public isInteractive ( )

setArgument() public method

public setArgument ( $name, $value )

setInteractive() public method

public setInteractive ( $interactive )

setOption() public method

public setOption ( $name, $value )

validate() public method

public validate ( )