Created
November 25, 2014 15:48
-
-
Save kitsunet/bdfab1da3544fa9a0a21 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class StreamResource { | |
| public function close(); // fclose | |
| public function read($length = NULL); // fread | |
| public function write($content); // fwrite | |
| public function rewind(); // rewind() | |
| public function getMetaData(); // stream_get_meta_data(), maybe even separate getters for the meta data information | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment