1 | <?php |
||
11 | class Stencil_Recorder implements Stencil_Recorder_Interface { |
||
12 | /** |
||
13 | * Recorded output saved |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $recorded = ''; |
||
18 | |||
19 | /** |
||
20 | * Status |
||
21 | * |
||
22 | * @var bool |
||
23 | */ |
||
24 | protected $recording = false; |
||
25 | |||
26 | /** |
||
27 | * Start recording |
||
28 | */ |
||
29 | public function start_recording() { |
||
36 | |||
37 | /** |
||
38 | * Finish recording and return recorded data |
||
39 | * |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function finish_recording() { |
||
48 | |||
49 | /** |
||
50 | * Get the recorded data |
||
51 | * |
||
52 | * @return mixed |
||
53 | * @throws LogicException When we are still recording. |
||
54 | */ |
||
55 | public function get_recording() { |
||
62 | } |
||
63 |