// Import framework stuff
use CoreFramework\Stream\Output\StreamableOutput;
+// Import SPL stuff
+use \SplFileInfo;
+
/**
* An interface for file output operations.
*
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
interface FileOutputStreamer extends StreamableOutput {
+
/**
* Saves streamed (that are mostly serialized objects) data to files or
* external servers.
*
- * @param $fileName The local file's name including full path
- * @param $dataArray Array containing the compressor's extension and streamed data
+ * @param $infoInstance An instance of a SplFileInfo class
+ * @param $dataArray Array containing the compressor's extension and streamed data
* @return void
*/
- function saveFile ($fileName, array $dataArray);
+ function saveFile (SplFileInfo $infoInstance, array $dataArray);
}