From 36bbd079b69b94bcc9c9c9e1e37ca3b1e7971625 Mon Sep 17 00:00:00 2001 From: Markus Staab <47448731+clxmstaab@users.noreply.github.com> Date: Fri, 16 Apr 2021 09:18:02 +0200 Subject: [PATCH] [Console] : added phpdocs to InputOption constants --- Input/InputOption.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Input/InputOption.php b/Input/InputOption.php index a8e956db5..5e48f88b8 100644 --- a/Input/InputOption.php +++ b/Input/InputOption.php @@ -21,9 +21,24 @@ */ class InputOption { + /** + * Do not accept input for the option (e.g. --yell). This is the default behavior of options. + */ public const VALUE_NONE = 1; + + /** + * A value must be passed when the option is used (e.g. --iterations=5 or -i5). + */ public const VALUE_REQUIRED = 2; + + /** + * The option may or may not have a value (e.g. --yell or --yell=loud). + */ public const VALUE_OPTIONAL = 4; + + /** + * The option accepts multiple values (e.g. --dir=/foo --dir=/bar). + */ public const VALUE_IS_ARRAY = 8; private $name;