| 1 | <?php |
||
| 13 | class Stream extends GuzzleStream |
||
| 14 | { |
||
| 15 | private $contents; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Sets stream contents |
||
| 19 | * |
||
| 20 | * @param string $contents |
||
| 21 | */ |
||
| 22 | public function setContents($contents) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Updates the stream contents |
||
| 29 | */ |
||
| 30 | public function save() |
||
| 36 | |||
| 37 | /** |
||
| 38 | * If the contents is setted, return it |
||
| 39 | * |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getContents() |
||
| 50 | |||
| 51 | public function __toString() |
||
| 59 | } |