FileDetector.php 985 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. 'naming_rules',
  16. 'is_latest_version',
  17. ];
  18. }
  19. public static function diffFields(): array
  20. {
  21. return [
  22. 'title',
  23. 'source',
  24. 'is_hide',
  25. 'version',
  26. 'doc_stage',
  27. 'doc_type',
  28. 'naming_rules',
  29. 'is_latest_version',
  30. ];
  31. }
  32. public static function converters():array
  33. {
  34. return [
  35. "naming_rule_id" => new NamingRuleConverter(),
  36. ];
  37. }
  38. public static function arrayFields(): array
  39. {
  40. return [
  41. 'naming_rules'
  42. ];
  43. }
  44. }