Skip to content

Commit

Permalink
Merge branch '4.4' into 5.2
Browse files Browse the repository at this point in the history
* 4.4:
  [VarDumper] Add PHP 8.1 enums tests
  [Console] : added phpdocs to InputOption constants
  • Loading branch information
derrabus committed Apr 19, 2021
2 parents 3f55653 + 36bbd07 commit 90374b8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Input/InputOption.php
Expand Up @@ -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;
Expand Down

0 comments on commit 90374b8

Please sign in to comment.