| 1: | <?php declare(strict_types=1); |
| 2: | |
| 3: | namespace Salient\Contract\Console; |
| 4: | |
| 5: | /** |
| 6: | * @api |
| 7: | */ |
| 8: | interface HasMessageType |
| 9: | { |
| 10: | /** |
| 11: | * Should be recorded with a prefix and level-based formatting |
| 12: | */ |
| 13: | public const TYPE_STANDARD = 0; |
| 14: | |
| 15: | /** |
| 16: | * Should be recorded without a prefix |
| 17: | */ |
| 18: | public const TYPE_UNDECORATED = 1; |
| 19: | |
| 20: | /** |
| 21: | * Should be recorded without a prefix or level-based formatting |
| 22: | */ |
| 23: | public const TYPE_UNFORMATTED = 2; |
| 24: | |
| 25: | /** |
| 26: | * Should be displayed temporarily and should not be recorded |
| 27: | */ |
| 28: | public const TYPE_PROGRESS = 3; |
| 29: | |
| 30: | /** |
| 31: | * The start of a group of console messages |
| 32: | */ |
| 33: | public const TYPE_GROUP_START = 4; |
| 34: | |
| 35: | /** |
| 36: | * The end of a group of console messages |
| 37: | */ |
| 38: | public const TYPE_GROUP_END = 5; |
| 39: | |
| 40: | /** |
| 41: | * "Command finished" or similar |
| 42: | */ |
| 43: | public const TYPE_SUMMARY = 6; |
| 44: | |
| 45: | /** |
| 46: | * "Command finished without errors" or similar |
| 47: | */ |
| 48: | public const TYPE_SUCCESS = 7; |
| 49: | |
| 50: | /** |
| 51: | * "Command finished with errors" or similar |
| 52: | */ |
| 53: | public const TYPE_FAILURE = 8; |
| 54: | } |
| 55: |