DateTimeConstraintAware.php 532 B

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