From 4a15a89102e89a89ea168493d16523b7e8b7273b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 23 Jan 2024 14:20:27 +0100 Subject: [PATCH] [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. --- .../AccompanyingCourseFilters/ReferrerFilterBetweenDates.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ReferrerFilterBetweenDates.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ReferrerFilterBetweenDates.php index 33a9b4cc3..c58aad3bb 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ReferrerFilterBetweenDates.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ReferrerFilterBetweenDates.php @@ -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 ) { }