1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Contract\Console; |
4: | |
5: | /** |
6: | * @api |
7: | */ |
8: | interface HasTargetFlag |
9: | { |
10: | /** |
11: | * Implements StreamTargetInterface |
12: | */ |
13: | public const TARGET_STREAM = 1; |
14: | |
15: | /** |
16: | * Implements StreamTargetInterface and writes to STDOUT or STDERR |
17: | */ |
18: | public const TARGET_STDIO = 2; |
19: | |
20: | /** |
21: | * Implements StreamTargetInterface and writes to STDOUT |
22: | */ |
23: | public const TARGET_STDOUT = 4; |
24: | |
25: | /** |
26: | * Implements StreamTargetInterface and writes to STDERR |
27: | */ |
28: | public const TARGET_STDERR = 8; |
29: | |
30: | /** |
31: | * Implements StreamTargetInterface and writes to a TTY |
32: | */ |
33: | public const TARGET_TTY = 16; |
34: | |
35: | /** |
36: | * Does not match enabled flags |
37: | */ |
38: | public const TARGET_INVERT = 32; |
39: | } |
40: |