1 | <?php |
||
7 | class StringReader implements ResourceReader |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $contents; |
||
13 | |||
14 | /** |
||
15 | * @param string $contents |
||
16 | */ |
||
17 | public function __construct($contents) |
||
21 | |||
22 | /** |
||
23 | * @return string |
||
24 | */ |
||
25 | public function getContents() |
||
29 | |||
30 | /** |
||
31 | * @return resource |
||
32 | */ |
||
33 | public function getContentsAsStream() |
||
42 | } |
||
43 |