VehicleStatusHelper.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. namespace App\Helpers;
  3. class VehicleStatusHelper
  4. {
  5. public static function getStatusText($value, $options)
  6. {
  7. return $options[$value] ?? '';
  8. }
  9. public static function getStaticPositionMap()
  10. {
  11. return [
  12. 1 => 'Come da documentazione fotografica',
  13. 2 => 'Come rilievo planimetrico',
  14. 3 => 'Coma da schizzo a vista non in scala',
  15. 4 => 'Già rimosso'
  16. ];
  17. }
  18. public static function getDestinazioneVeicoloMap()
  19. {
  20. return [
  21. 1 => "Rimosso ai sensi dell'articolo 2028",
  22. 2 => 'Sequestro art. 354 Codice Procedura Penale',
  23. 3 => 'Sequestro art. 321 Codice Procedura Penale',
  24. 4 => 'Sequestro',
  25. 5 => 'Sequestro amministrativo',
  26. 6 => 'Fermo amministrativo',
  27. 7 => 'Ritirato dal conducente'
  28. ];
  29. }
  30. public static function getStatoPneumaticiMap()
  31. {
  32. return [
  33. 1 => 'Regolamentare',
  34. 2 => 'Buono',
  35. 3 => 'Sufficiente',
  36. 4 => 'Insufficiente',
  37. 5 => 'Non rilevato'
  38. ];
  39. }
  40. public static function getTergicristalliMap()
  41. {
  42. return [
  43. 1 => 'FUNZIONANTE',
  44. 2 => 'NON FUNZIONANTE',
  45. 3 => 'NON RILEVATO',
  46. 4 => 'NON PREVISTO'
  47. ];
  48. }
  49. public static function getSegnalePericoloMap()
  50. {
  51. return [
  52. 1 => 'PRESENTE',
  53. 2 => 'NON PRESENTE',
  54. 3 => 'NON RILEVATO',
  55. 4 => 'NON PREVISTO'
  56. ];
  57. }
  58. public static function getMarciaMap()
  59. {
  60. return [
  61. 0 => 'Folle',
  62. 1 => 'Prima',
  63. 2 => 'Seconda',
  64. 3 => 'Terza',
  65. 4 => 'Quarta',
  66. 5 => 'Quinta',
  67. 6 => 'Sesta',
  68. 7 => 'Retromarcia',
  69. 8 => 'Non rilevata',
  70. 9 => 'Cambio automatico'
  71. ];
  72. }
  73. }