From b6c69457f81a10def60d51ecd774e0b91f283d10 Mon Sep 17 00:00:00 2001 From: Ali Masood Date: Thu, 8 Aug 2019 11:22:14 +0900 Subject: [PATCH] Adds iterable file to parse files using SplFileObject --- lib/IterableFile.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lib/IterableFile.php diff --git a/lib/IterableFile.php b/lib/IterableFile.php new file mode 100644 index 0000000..dad827e --- /dev/null +++ b/lib/IterableFile.php @@ -0,0 +1,17 @@ + + * Date: 2019-08-08 11:19 + */ + +namespace J\FS; + +class IterableFile extends \SplFileObject +{ + public function __construct(ReadableFile $file) + { + parent::__construct($file->fullPath()); + } +}