/**
* Returns the first argument from the raw parameters (not parsed).
*
- * @return string The value of the first argument or null otherwise
+ * @return string|null The value of the first argument or null otherwise
*/
public function getFirstArgument();
*
* This method is to be used to introspect the input parameters
* before they have been validated. It must be used carefully.
+ * Does not necessarily return the correct result for short options
+ * when multiple flags are combined in the same option.
*
* @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
*
* This method is to be used to introspect the input parameters
* before they have been validated. It must be used carefully.
+ * Does not necessarily return the correct result for short options
+ * when multiple flags are combined in the same option.
*
* @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
/**
* Binds the current Input instance with the given arguments and options.
*
- * @param InputDefinition $definition A InputDefinition instance
+ * @throws RuntimeException
*/
public function bind(InputDefinition $definition);
*
* @param string $name The argument name
*
- * @return mixed The argument value
+ * @return string|string[]|null The argument value
*
* @throws InvalidArgumentException When argument given doesn't exist
*/
/**
* Sets an argument value by name.
*
- * @param string $name The argument name
- * @param string $value The argument value
+ * @param string $name The argument name
+ * @param string|string[]|null $value The argument value
*
* @throws InvalidArgumentException When argument given doesn't exist
*/
*
* @param string $name The option name
*
- * @return mixed The option value
+ * @return string|string[]|bool|null The option value
*
* @throws InvalidArgumentException When option given doesn't exist
*/
/**
* Sets an option value by name.
*
- * @param string $name The option name
- * @param string|bool $value The option value
+ * @param string $name The option name
+ * @param string|string[]|bool|null $value The option value
*
* @throws InvalidArgumentException When option given doesn't exist
*/