1 | <?php |
||
17 | class File |
||
18 | { |
||
19 | /** |
||
20 | * @var resource |
||
21 | */ |
||
22 | protected $out; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $outTarget; |
||
28 | |||
29 | /** |
||
30 | * Set output target. |
||
31 | * |
||
32 | * @param mixed $out |
||
33 | */ |
||
34 | 5 | public function setOut($out) |
|
45 | |||
46 | /** |
||
47 | * Setup the out resource |
||
48 | 2 | * |
|
49 | 1 | * @param string $out |
|
50 | 1 | */ |
|
51 | 2 | protected function setupOut($out) |
|
59 | |||
60 | /** |
||
61 | * @param string $buffer |
||
62 | 3 | */ |
|
63 | public function write($buffer) |
||
67 | |||
68 | /** |
||
69 | * Close output if it's not to a php stream. |
||
70 | 2 | */ |
|
71 | public function close() |
||
77 | } |
||
78 |