Open nozavroni opened 7 years ago
Might be useful to add __sleep and __wakeup methods to the dataset class. This way you could do something like:
__sleep
__wakeup
<?php $reader = (new Reader(new IO\Stream('./data/products.csv')))->addFilter(function($row) { if (isset($row['email'])) { return is_guy_cool($row['email']); } return false; }); $dataset = (new DataSet())->import($reader); $csv = serialize($dataset);
I don't know if that's exactly how it would work, but I can see that being useful for sure. Look into it. Maybe for v0.4?
Might be useful to add
__sleep
and__wakeup
methods to the dataset class. This way you could do something like:I don't know if that's exactly how it would work, but I can see that being useful for sure. Look into it. Maybe for v0.4?