1 | <?php |
||
18 | class Std implements Streamable |
||
19 | { |
||
20 | /** |
||
21 | * Opens stream to stdout |
||
22 | */ |
||
23 | const OUT = "php://stdout"; |
||
24 | |||
25 | /** |
||
26 | * Opens stream to stderr |
||
27 | */ |
||
28 | const ERR = "php://stderr"; |
||
29 | |||
30 | /** |
||
31 | * Type of stream |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $type; |
||
35 | |||
36 | /** |
||
37 | * Std constructor. |
||
38 | * @param string $type |
||
39 | */ |
||
40 | public function __construct($type = self::OUT) |
||
44 | |||
45 | /** @inheritdoc */ |
||
46 | public function open() |
||
50 | } |
||
51 |