DetectorAbstract.php 576 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Services\History\Detector;
  3. use App\Services\History\Converter\ConverterContact;
  4. abstract class DetectorAbstract implements DetectorContact
  5. {
  6. public static function diffFields(): array
  7. {
  8. return [];
  9. }
  10. public static function converter(string $field): ?ConverterContact
  11. {
  12. $converters = static::converters();
  13. return $converters[$field] ?? null;
  14. }
  15. public static function converters(): array
  16. {
  17. return [];
  18. }
  19. public static function arrayFields(): array
  20. {
  21. return [];
  22. }
  23. }