Explorar o código

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

Benjamin Eberlei %!s(int64=14) %!d(string=hai) anos
pai
achega
6ac5c298bd
Modificáronse 1 ficheiros con 27 adicións e 0 borrados
  1. 27 0
      src/Symfony/Component/Console/Input/InputInterface.php

+ 27 - 0
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();
 }