This is a feature request looking for a developer. Please comment bellow if you'd like to work on it.
About
The OR Card Filter (implemented in \AppBundle\Helper\CardFilter\OrCardFilter) allows for any number of other filters to be wrapped by it (in order for these to be logically ORed).
Within its setUp() function, it achieves this by providing a prompt asking if the user would like to add another Filter, and then iterating a loop depending on the input:
$exitQuestion = new ChoiceQuestion(
'Would you like to add another Filter to logically OR?',
['y', 'n']
);
When adding many filters, it becomes mentally taxing to remember which filters are already wrapped, so it would be useful to output the filters already added just prior to the above prompt.
The display of the filters can be similar to how filters are printed in the main menu of the Card Filter Command at \AppBundle\Command\CardFilterCommand::printMenuOptions()
Gotchas
Be mindful that the list of wrapped filters can be empty if the setup of the first filter is exited via an exception
This is a feature request looking for a developer. Please comment bellow if you'd like to work on it.
About
The OR Card Filter (implemented in
\AppBundle\Helper\CardFilter\OrCardFilter) allows for any number of other filters to be wrapped by it (in order for these to be logically ORed).Within its
setUp()function, it achieves this by providing a prompt asking if the user would like to add another Filter, and then iterating a loop depending on the input:When adding many filters, it becomes mentally taxing to remember which filters are already wrapped, so it would be useful to output the filters already added just prior to the above prompt.
The display of the filters can be similar to how filters are printed in the main menu of the Card Filter Command at
\AppBundle\Command\CardFilterCommand::printMenuOptions()Gotchas
Be mindful that the list of wrapped filters can be empty if the setup of the first filter is exited via an exception