Skip to content

Commit

Permalink
Adds iterable file to parse files using SplFileObject
Browse files Browse the repository at this point in the history
  • Loading branch information
mediaport committed Aug 8, 2019
1 parent 15c35f1 commit b6c6945
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/IterableFile.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
declare(strict_types=1);

/**
* created by Ali Masood<ali@jsys.pk>
* Date: 2019-08-08 11:19
*/

namespace J\FS;

class IterableFile extends \SplFileObject
{
public function __construct(ReadableFile $file)
{
parent::__construct($file->fullPath());
}
}

0 comments on commit b6c6945

Please sign in to comment.