<?php

namespace App\Filter\Doctrine\TimeConstraint;

use App\Attribute\DateTimeConstraintAware;
use App\Service\Constraint\DateTimeConstraint;
use Symfony\Contracts\Service\Attribute\Required;

/**
 * Filtre Doctrine permettant d'assurer les contraintes de temps sur la période choisie par l'utilisateur en cours
 */
class DatetimeFilter extends AbstractTimeFilter
{
    /**
     * @inheritdoc
     * @var string|null
     */
    protected static ?string $constraintAnnotation = DateTimeConstraintAware::class;
    /**
     * @inheritdoc
     * @var string|null
     */
    protected static ?string $annotationStartField = 'startDateFieldName';
    /**
     * @inheritdoc
     * @var string|null
     */
    protected static ?string $annotationEndField = 'endDateFieldName';
}
