X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=framework%2Fmain%2Finterfaces%2Fio%2Ffile%2Fclass_FileOutputStreamer.php;h=5de8fd4eb611dc971adc64ff90ed49481c978bf3;hp=158d0c5652827dc6a715761439ddf385e66f6fc9;hb=b9bfbe86c031c9d83c3670602906df191a33ba2a;hpb=5da8f717122568335b8a8ab230fa0de17e983fab diff --git a/framework/main/interfaces/io/file/class_FileOutputStreamer.php b/framework/main/interfaces/io/file/class_FileOutputStreamer.php index 158d0c56..5de8fd4e 100644 --- a/framework/main/interfaces/io/file/class_FileOutputStreamer.php +++ b/framework/main/interfaces/io/file/class_FileOutputStreamer.php @@ -5,6 +5,9 @@ namespace CoreFramework\Stream\Filesystem; // Import framework stuff use CoreFramework\Stream\Output\StreamableOutput; +// Import SPL stuff +use \SplFileInfo; + /** * An interface for file output operations. * @@ -28,14 +31,15 @@ use CoreFramework\Stream\Output\StreamableOutput; * along with this program. If not, see . */ 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); }