FileDetector.php 954 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace App\Services\History\Detector;
  3. use App\Services\History\Converter\CustomFieldSelectConverter;
  4. use App\Services\History\Converter\NamingRuleConverter;
  5. class FileDetector extends DetectorAbstract
  6. {
  7. public static function fields(): array
  8. {
  9. return [
  10. 'title',
  11. 'source',
  12. 'is_hide',
  13. 'version',
  14. 'naming_rules',
  15. 'doc_stage',
  16. 'doc_type'
  17. ];
  18. }
  19. public static function diffFields(): array
  20. {
  21. return [
  22. 'title',
  23. 'source',
  24. 'is_hide',
  25. 'version',
  26. 'naming_rules',
  27. 'doc_stage',
  28. 'doc_type'
  29. ];
  30. }
  31. public static function converters():array
  32. {
  33. return [
  34. "naming_rule_id" => new NamingRuleConverter(),
  35. ];
  36. }
  37. public static function arrayFields(): array
  38. {
  39. return [
  40. ];
  41. }
  42. }