class-gsc-service.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\Google_Search_Console
  6. */
  7. /**
  8. * Class WPSEO_GSC_Service.
  9. *
  10. * @deprecated 12.5
  11. *
  12. * @codeCoverageIgnore
  13. */
  14. class WPSEO_GSC_Service {
  15. /**
  16. * Search Console service constructor.
  17. *
  18. * @deprecated 12.5
  19. *
  20. * @codeCoverageIgnore
  21. *
  22. * @param string $profile Profile name.
  23. */
  24. public function __construct( $profile = '' ) {
  25. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  26. }
  27. /**
  28. * Returns the client.
  29. *
  30. * @deprecated 12.5
  31. *
  32. * @codeCoverageIgnore
  33. *
  34. * @return Yoast_Api_Google_Client
  35. */
  36. public function get_client() {
  37. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  38. return null;
  39. }
  40. /**
  41. * Removes the option and calls the clients clear_data method to clear that one as well.
  42. *
  43. * @deprecated 12.5
  44. *
  45. * @codeCoverageIgnore
  46. */
  47. public function clear_data() {
  48. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  49. }
  50. /**
  51. * Get all sites that are registered in the GSC panel.
  52. *
  53. * @deprecated 12.5
  54. *
  55. * @codeCoverageIgnore
  56. *
  57. * @return array
  58. */
  59. public function get_sites() {
  60. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  61. return array();
  62. }
  63. /**
  64. * Get crawl issues.
  65. *
  66. * @deprecated 12.5
  67. *
  68. * @codeCoverageIgnore
  69. *
  70. * @return array
  71. */
  72. public function get_crawl_issue_counts() {
  73. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  74. return array();
  75. }
  76. /**
  77. * Sending request to mark issue as fixed.
  78. *
  79. * @deprecated 12.5
  80. *
  81. * @codeCoverageIgnore
  82. *
  83. * @param string $url Issue URL.
  84. * @param string $platform Platform (desktop, mobile, feature phone).
  85. * @param string $category Issue type.
  86. *
  87. * @return bool
  88. */
  89. public function mark_as_fixed( $url, $platform, $category ) {
  90. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  91. return false;
  92. }
  93. /**
  94. * Fetching the issues from the GSC API.
  95. *
  96. * @deprecated 12.5
  97. *
  98. * @codeCoverageIgnore
  99. *
  100. * @param string $platform Platform (desktop, mobile, feature phone).
  101. * @param string $category Issue type.
  102. *
  103. * @return mixed
  104. */
  105. public function fetch_category_issues( $platform, $category ) {
  106. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  107. return array();
  108. }
  109. }