ActivityYearConstraintAware.php 541 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Attribute;
  4. /**
  5. * Classe ActivityYearConstraintAware qui gère l'annotation pour le Doctrine filter.
  6. */
  7. #[\Attribute(\Attribute::TARGET_CLASS)]
  8. final class ActivityYearConstraintAware
  9. {
  10. public string $startYearFieldName;
  11. public string $endYearFieldName;
  12. public function __construct(
  13. string $startYearFieldName,
  14. string $endYearFieldName,
  15. ) {
  16. $this->startYearFieldName = $startYearFieldName;
  17. $this->endYearFieldName = $endYearFieldName;
  18. }
  19. }