1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Console;
4:
5: /**
6: * Console message types
7: *
8: * @api
9: */
10: interface ConsoleMessageType
11: {
12: /**
13: * A message that should be recorded with a prefix and level-based
14: * formatting
15: */
16: public const STANDARD = 0;
17:
18: /**
19: * A message that should be recorded without a prefix
20: */
21: public const UNDECORATED = 1;
22:
23: /**
24: * A message that should be recorded without a prefix or level-based
25: * formatting
26: */
27: public const UNFORMATTED = 2;
28:
29: /**
30: * A message that should be displayed temporarily and should not be recorded
31: */
32: public const PROGRESS = 3;
33:
34: /**
35: * The start of a group of console messages
36: */
37: public const GROUP_START = 4;
38:
39: /**
40: * The end of a group of console messages
41: */
42: public const GROUP_END = 5;
43:
44: /**
45: * "Command finished" or similar
46: */
47: public const SUMMARY = 6;
48:
49: /**
50: * "Command finished without errors" or similar
51: */
52: public const SUCCESS = 7;
53:
54: /**
55: * "Command finished with errors" or similar
56: */
57: public const FAILURE = 8;
58: }
59: