FileDetector.php 917 B

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