1 | <?php |
||
16 | class StringReader implements ResourceReader |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $contents; |
||
22 | |||
23 | /** |
||
24 | * @param string $contents |
||
25 | */ |
||
26 | 8 | public function __construct($contents) |
|
30 | |||
31 | /** |
||
32 | * @return string |
||
33 | */ |
||
34 | 4 | public function getContents() |
|
38 | |||
39 | /** |
||
40 | * @return resource |
||
41 | */ |
||
42 | 4 | public function getContentsAsStream() |
|
51 | } |
||
52 |