[Console] Add missing method isInteractive() to InputInterface and added some docblock comments to all interface methods.

This commit is contained in:
Benjamin Eberlei 2011-01-22 20:08:34 +01:00 committed by Fabien Potencier
parent 7b287550ff
commit 6ac5c298bd

View File

@ -44,13 +44,40 @@ interface InputInterface
*/
function bind(InputDefinition $definition);
/**
* Validate if arguments given are correct.
*
* Throws an exception when not enough arguments are given.
*
* @throws \RuntimeException
*/
function validate();
/**
* Returns all the given arguments merged with the default values.
*
* @return array
*/
function getArguments();
/**
* Get argument by name.
*
* @return mixed
*/
function getArgument($name);
/**
* @return array
*/
function getOptions();
function getOption($name);
/**
* Is this input means interactive?
*
* @return bool
*/
function isInteractive();
}