From 258ea46f5a53a62f1740baf6b813ac14df4e96d9 Mon Sep 17 00:00:00 2001 From: Pablo Braulio Date: Tue, 8 Dec 2015 20:30:02 +0100 Subject: [PATCH] Update interface --- .../Component/InMemoryInputInterface.php | 60 ++++++++++--------- .../Component/InMemoryOutputInterface.php | 36 +++++++++++ 2 files changed, 67 insertions(+), 29 deletions(-) diff --git a/src/PhpGitHooks/Infrastructure/Component/InMemoryInputInterface.php b/src/PhpGitHooks/Infrastructure/Component/InMemoryInputInterface.php index 5a7cd5b..b1f92b1 100644 --- a/src/PhpGitHooks/Infrastructure/Component/InMemoryInputInterface.php +++ b/src/PhpGitHooks/Infrastructure/Component/InMemoryInputInterface.php @@ -23,35 +23,6 @@ public function getFirstArgument() return $this->firstArgument; } - /** - * Returns true if the raw parameters (not parsed) contain a value. - * - * This method is to be used to introspect the input parameters - * before they have been validated. It must be used carefully. - * - * @param string|array $values The values to look for in the raw parameters (can be an array) - * - * @return bool true if the value is contained in the raw parameters - */ - public function hasParameterOption($values) - { - } - - /** - * Returns the value of a raw option (not parsed). - * - * This method is to be used to introspect the input parameters - * before they have been validated. It must be used carefully. - * - * @param string|array $values The value(s) to look for in the raw parameters (can be an array) - * @param mixed $default The default value to return if no result is found - * - * @return mixed The option value - */ - public function getParameterOption($values, $default = false) - { - } - /** * Binds the current Input instance with the given arguments and options. * @@ -183,4 +154,35 @@ public function setFirstArgument($firstArgument) { $this->firstArgument = $firstArgument; } + + /** + * Returns true if the raw parameters (not parsed) contain a value. + * + * This method is to be used to introspect the input parameters + * before they have been validated. It must be used carefully. + * + * @param string|array $values The values to look for in the raw parameters (can be an array) + * @param bool $onlyParams Only check real parameters, skip those following an end of options (--) signal + * + * @return bool true if the value is contained in the raw parameters + */ + public function hasParameterOption($values, $onlyParams = false) + { + } + + /** + * Returns the value of a raw option (not parsed). + * + * This method is to be used to introspect the input parameters + * before they have been validated. It must be used carefully. + * + * @param string|array $values The value(s) to look for in the raw parameters (can be an array) + * @param mixed $default The default value to return if no result is found + * @param bool $onlyParams Only check real parameters, skip those following an end of options (--) signal + * + * @return mixed The option value + */ + public function getParameterOption($values, $default = false, $onlyParams = false) + { + } } diff --git a/src/PhpGitHooks/Infrastructure/Component/InMemoryOutputInterface.php b/src/PhpGitHooks/Infrastructure/Component/InMemoryOutputInterface.php index 6254e85..44f43bd 100644 --- a/src/PhpGitHooks/Infrastructure/Component/InMemoryOutputInterface.php +++ b/src/PhpGitHooks/Infrastructure/Component/InMemoryOutputInterface.php @@ -101,4 +101,40 @@ public function setFormatter(OutputFormatterInterface $formatter) public function getFormatter() { } + + /** + * Returns whether verbosity is quiet (-q). + * + * @return bool true if verbosity is set to VERBOSITY_QUIET, false otherwise + */ + public function isQuiet() + { + } + + /** + * Returns whether verbosity is verbose (-v). + * + * @return bool true if verbosity is set to VERBOSITY_VERBOSE, false otherwise + */ + public function isVerbose() + { + } + + /** + * Returns whether verbosity is very verbose (-vv). + * + * @return bool true if verbosity is set to VERBOSITY_VERY_VERBOSE, false otherwise + */ + public function isVeryVerbose() + { + } + + /** + * Returns whether verbosity is debug (-vvv). + * + * @return bool true if verbosity is set to VERBOSITY_DEBUG, false otherwise + */ + public function isDebug() + { + } }