[export] Add referrer on accompanying course filter between dates feature and relevant tests

Implemented a new filter to the software for social workers. This filter, ReferrerFilterBetweenDates, enables filtering of query results based on a range of dates and accepted referrers. Tests for this new functionality have also been added to ensure the feature works as expected.
This commit is contained in:
Julien Fastré 2024-01-23 14:20:27 +01:00
parent c707a34f16
commit 4a15a89102
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -30,7 +30,7 @@ use Symfony\Component\Form\FormBuilderInterface;
*
* @see ReferrerFilterBetweenDatesTest for tests
*/
class ReferrerFilterBetweenDates implements FilterInterface
final readonly class ReferrerFilterBetweenDates implements FilterInterface
{
private const A = 'acp_referrer_filter_uhistory';
@ -40,7 +40,7 @@ class ReferrerFilterBetweenDates implements FilterInterface
private const PU = 'acp_referrer_filter_users';
public function __construct(
private readonly RollingDateConverterInterface $rollingDateConverter,
private RollingDateConverterInterface $rollingDateConverter,
private UserRender $userRender
) {
}