We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Enhancement description While defining my rules, I need to define some fine grained rules such as:
A or B or C
A and one of ( B or C )
Currently, all rules are combining as an and operator. Those operators may be useful:
and
all of
any of
none of
one of
at least X of
at most X of
Suggested approach or solution By creating new selectors, I can now define more precise rules
$this->newRule ->classesThat(Selector::implementInterface('EventSauce\EventSourcing\AggregateRoot')) ->mustInclude() ->classesThat( Selector::oneOf( Selector::haveClassName('EventSauce\EventSourcing\AggregateRootWithAggregates'), Selector::haveClassName('EventSauce\EventSourcing\AggregateRootBehaviour'), Selector::haveClassName('EventSauce\EventSourcing\AggregateAlwaysAppliesEvents'), ) ) ->build();
The text was updated successfully, but these errors were encountered:
carlosas#186 Add combination operators to selectors
42d0f97
carlosas#186 Downgraded to PHP 7.4 compatibility
7f8df3b
Released with https://github.com/carlosas/phpat/releases/tag/0.11.2 🚀
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Enhancement description
While defining my rules, I need to define some fine grained rules such as:
A or B or C
A and one of ( B or C )
Currently, all rules are combining as an
and
operator.Those operators may be useful:
all of
(and operator)any of
(or operator)none of
(not operator)one of
(xor operator)at least X of
at most X of
Suggested approach or solution
By creating new selectors, I can now define more precise rules
The text was updated successfully, but these errors were encountered: