FileDetector.php 835 B

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