<?php

namespace App\Filter\Doctrine\TimeConstraint;

use App\Attribute\ActivityYearConstraintAware;
use App\Service\Constraint\ActivityYearConstraint;
use Symfony\Contracts\Service\Attribute\Required;

/**
 * Filtre Doctrine permettant d'assurer les contraintes de temps sur l'année d'activité actuelle
 * de l'utilisateur en cours
 */
class ActivityYearFilter extends AbstractTimeFilter
{
    /**
     * @inheritdoc
     * @var string|null
     */
    protected static ?string $constraintAnnotation = ActivityYearConstraintAware::class;
    /**
     * @inheritdoc
     * @var string|null
     */
    protected static ?string $annotationStartField = 'startYearFieldName';
    /**
     * @inheritdoc
     * @var string|null
     */
    protected static ?string $annotationEndField = 'endYearFieldName';
}
