Skip to content

Commit

Permalink
[Console] : added phpdocs to InputOption constants
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab authored and fabpot committed Apr 16, 2021
1 parent 2ac7479 commit 36bbd07
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Input/InputOption.php
Original file line number Diff line number Diff line change
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 36bbd07

Please sign in to comment.