Add __invoke() magic method to Reader class and anywhere else you can think of that it would make sense. For the reader method it would make sense to implement it contextually if possible, but if not, then it would be a good "alias" for the "filter()" method. So that instead of...
For the Writer class, it would be a good alias for writeRow() writeRows() depending on what you pass it. So you could do $writer($rows) instead of $writer->writeRows($rows);
I'm sure there are other classes that could benefit from this magic method as well. Just don't go overboard.
Add __invoke() magic method to Reader class and anywhere else you can think of that it would make sense. For the reader method it would make sense to implement it contextually if possible, but if not, then it would be a good "alias" for the "filter()" method. So that instead of...
You would do this:
For the Writer class, it would be a good alias for writeRow() writeRows() depending on what you pass it. So you could do
$writer($rows)
instead of$writer->writeRows($rows);
I'm sure there are other classes that could benefit from this magic method as well. Just don't go overboard.