1 | <?php |
||
14 | class CachedStreamInterceptor extends AbstractStreamInterceptor |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | private static $cache = ""; |
||
22 | |||
23 | /** |
||
24 | * Create a new instance of CachedStreamInterceptor |
||
25 | */ |
||
26 | 1 | public function __construct() |
|
30 | |||
31 | /** |
||
32 | * |
||
33 | * {@inheritdoc} |
||
34 | * @see \Generics\Streams\Interceptor\StreamInterceptor::filter() |
||
35 | */ |
||
36 | 1 | public function filter($in, $out, int &$consumed, bool $closing): int |
|
49 | |||
50 | /** |
||
51 | * Retrieve the cache buffer |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | 1 | public function getCache(): string |
|
59 | |||
60 | /** |
||
61 | * |
||
62 | * {@inheritdoc} |
||
63 | * @see \Generics\Streams\Interceptor\StreamInterceptor::getFilterName() |
||
64 | */ |
||
65 | 1 | public function getFilterName(): string |
|
69 | |||
70 | /** |
||
71 | * |
||
72 | * {@inheritdoc} |
||
73 | * @see \Generics\Streams\Interceptor\StreamInterceptor::reset() |
||
74 | */ |
||
75 | 1 | public function reset() |
|
79 | } |