class-gsc-mapper.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\Google_Search_Console
  6. */
  7. /**
  8. * Class WPSEO_GSC_Mapper.
  9. *
  10. * @deprecated 12.5
  11. *
  12. * @codeCoverageIgnore
  13. */
  14. class WPSEO_GSC_Mapper {
  15. /**
  16. * If there is no platform, just get the first key out of the array and redirect to it.
  17. *
  18. * @deprecated 12.5
  19. *
  20. * @codeCoverageIgnore
  21. *
  22. * @param string $platform Platform (desktop, mobile, feature phone).
  23. *
  24. * @return mixed
  25. */
  26. public static function get_current_platform( $platform ) {
  27. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  28. }
  29. /**
  30. * Mapping the platform.
  31. *
  32. * @deprecated 12.5
  33. *
  34. * @codeCoverageIgnore
  35. *
  36. * @param string $platform Platform (desktop, mobile, feature phone).
  37. *
  38. * @return mixed
  39. */
  40. public static function platform_to_api( $platform ) {
  41. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  42. }
  43. /**
  44. * Mapping the given platform by value and return its key.
  45. *
  46. * @deprecated 12.5
  47. *
  48. * @codeCoverageIgnore
  49. *
  50. * @param string $platform Platform (desktop, mobile, feature phone).
  51. *
  52. * @return string
  53. */
  54. public static function platform_from_api( $platform ) {
  55. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  56. return $platform;
  57. }
  58. /**
  59. * Mapping the given category by searching for its key.
  60. *
  61. * @deprecated 12.5
  62. *
  63. * @codeCoverageIgnore
  64. *
  65. * @param string $category Issue type.
  66. *
  67. * @return mixed
  68. */
  69. public static function category_to_api( $category ) {
  70. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  71. return $category;
  72. }
  73. /**
  74. * Mapping the given category by value and return its key.
  75. *
  76. * @deprecated 12.5
  77. *
  78. * @codeCoverageIgnore
  79. *
  80. * @param string $category Issue type.
  81. *
  82. * @return string
  83. */
  84. public static function category_from_api( $category ) {
  85. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  86. return $category;
  87. }
  88. }