1: <?php declare(strict_types=1);
2:
3: namespace Salient\Contract\Console;
4:
5: /**
6: * A console output target with an underlying PHP stream
7: *
8: * @api
9: */
10: interface ConsoleTargetStreamInterface extends ConsoleTargetInterface
11: {
12: /**
13: * Check if the target writes to STDOUT
14: */
15: public function isStdout(): bool;
16:
17: /**
18: * Check if the target writes to STDERR
19: */
20: public function isStderr(): bool;
21:
22: /**
23: * Check if the target writes to a TTY
24: */
25: public function isTty(): bool;
26:
27: /**
28: * Get the target's end-of-line sequence
29: */
30: public function getEol(): string;
31:
32: /**
33: * Close and reopen the underlying PHP stream if possible
34: */
35: public function reopen(): void;
36: }
37: