-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide util class for reducer callback #131
Conversation
0f5e5c4
to
6e5ad3b
Compare
d623113
to
4acc5a1
Compare
4fb59dd
to
4b51bfe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one 🎉
Thanks 👍 |
* | ||
* phpcs:disable Generic.Files.LineLength.TooLong | ||
*/ | ||
final class CallbacksArrayReducer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could shorten the name to CallbacksReducer
. Due to the plural it's quite clear we are dealing with a list of multiple callbacks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, too late, we can tackle that in a follow-up PR...
This PR
ReducerBuilder
functional and stateless classReducerBuilder
class.