From 8159f91e2519e6774696742a2cba559f25627ef6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 7 Nov 2022 18:19:35 +0100 Subject: [PATCH] DX: create interface for RollingDateConverterInterface --- .../RollingDate/RollingDateConverter.php | 2 +- .../RollingDateConverterInterface.php | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/Bundle/ChillMainBundle/Service/RollingDate/RollingDateConverterInterface.php diff --git a/src/Bundle/ChillMainBundle/Service/RollingDate/RollingDateConverter.php b/src/Bundle/ChillMainBundle/Service/RollingDate/RollingDateConverter.php index 9ec78c509..026ff7a8a 100644 --- a/src/Bundle/ChillMainBundle/Service/RollingDate/RollingDateConverter.php +++ b/src/Bundle/ChillMainBundle/Service/RollingDate/RollingDateConverter.php @@ -16,7 +16,7 @@ use DateTimeImmutable; use LogicException; use UnexpectedValueException; -class RollingDateConverter +class RollingDateConverter implements RollingDateConverterInterface { public function convert(RollingDate $rollingDate): DateTimeImmutable { diff --git a/src/Bundle/ChillMainBundle/Service/RollingDate/RollingDateConverterInterface.php b/src/Bundle/ChillMainBundle/Service/RollingDate/RollingDateConverterInterface.php new file mode 100644 index 000000000..b20a5ced2 --- /dev/null +++ b/src/Bundle/ChillMainBundle/Service/RollingDate/RollingDateConverterInterface.php @@ -0,0 +1,19 @@ +