_directoryPath = $directoryPath; } public function put($name, $value) { return file_put_contents($this->_directoryPath . DIRECTORY_SEPARATOR . $name, $value); } public function get($name) { return file_get_contents($this->_directoryPath . DIRECTORY_SEPARATOR . $name); } public function has($name) { return file_exists($this->_directoryPath . DIRECTORY_SEPARATOR . $name); } public function remove($name) { return unlink($this->_directoryPath . DIRECTORY_SEPARATOR . $name); } public function getStreamUri($name) { return $this->_directoryPath . DIRECTORY_SEPARATOR . $name; } }