|
@@ -18,7 +18,39 @@ namespace Composer\IO;
|
|
* @author François Pluchino <francois.pluchino@opendisplay.com>
|
|
* @author François Pluchino <francois.pluchino@opendisplay.com>
|
|
*/
|
|
*/
|
|
interface IOInterface
|
|
interface IOInterface
|
|
-{
|
|
|
|
|
|
+{
|
|
|
|
+ /**
|
|
|
|
+ * Returns all the given arguments merged with the default values.
|
|
|
|
+ *
|
|
|
|
+ * @return array
|
|
|
|
+ */
|
|
|
|
+ function getArguments();
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Gets argument by name.
|
|
|
|
+ *
|
|
|
|
+ * @param string $name The name of the argument
|
|
|
|
+ *
|
|
|
|
+ * @return mixed
|
|
|
|
+ */
|
|
|
|
+ function getArgument($name);
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Returns all the given options merged with the default values.
|
|
|
|
+ *
|
|
|
|
+ * @return array
|
|
|
|
+ */
|
|
|
|
+ function getOptions();
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Gets an option by name.
|
|
|
|
+ *
|
|
|
|
+ * @param string $name The name of the option
|
|
|
|
+ *
|
|
|
|
+ * @return mixed
|
|
|
|
+ */
|
|
|
|
+ function getOption($name);
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Is this input means interactive?
|
|
* Is this input means interactive?
|
|
*
|
|
*
|