From 6ac5c298bde498f83534ecc325c16cbcd917c7de Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Sat, 22 Jan 2011 20:08:34 +0100 Subject: [PATCH] [Console] Add missing method isInteractive() to InputInterface and added some docblock comments to all interface methods. --- .../Console/Input/InputInterface.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/Symfony/Component/Console/Input/InputInterface.php b/src/Symfony/Component/Console/Input/InputInterface.php index 0a2290fd5e..bf943716a4 100644 --- a/src/Symfony/Component/Console/Input/InputInterface.php +++ b/src/Symfony/Component/Console/Input/InputInterface.php @@ -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(); }