DX: create interface for RollingDateConverterInterface

This commit is contained in:
Julien Fastré 2022-11-07 18:19:35 +01:00
parent 0756bec580
commit 8159f91e25
2 changed files with 20 additions and 1 deletions

View File

@ -16,7 +16,7 @@ use DateTimeImmutable;
use LogicException;
use UnexpectedValueException;
class RollingDateConverter
class RollingDateConverter implements RollingDateConverterInterface
{
public function convert(RollingDate $rollingDate): DateTimeImmutable
{

View File

@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Service\RollingDate;
use DateTimeImmutable;
interface RollingDateConverterInterface
{
public function convert(RollingDate $rollingDate): DateTimeImmutable;
}