1: <?php
2: /**
3: * @author Jefferson González
4: * @license MIT
5: * @link http://github.com/peg-org/peg-custom Source code.
6: */
7:
8: namespace Peg\Custom\CommandLine;
9:
10: /**
11: * Enumeration used to declare a \Peg\Custom\CommandLine\Option type
12: */
13: class OptionType
14: {
15:
16: /**
17: * Accepts any type of string.
18: */
19: const STRING = 1;
20:
21: /**
22: * Only accept numbers.
23: */
24: const INTEGER = 2;
25:
26: /**
27: * Doesn't needs a value, just to be present.
28: */
29: const FLAG = 3;
30:
31: }