[Console] : added phpdocs to InputOption constants

This commit is contained in:
Markus Staab 2021-04-16 09:18:02 +02:00 committed by Fabien Potencier
parent 32cce9f7b6
commit 9f124f6278

View File

@ -21,9 +21,24 @@ use Symfony\Component\Console\Exception\LogicException;
*/
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;