class-component-connect-google-search-console.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\ConfigurationUI
  6. */
  7. /**
  8. * Class WPSEO_Config_Component_Connect_Google_Search_Console.
  9. *
  10. * @deprecated 12.5
  11. *
  12. * @codeCoverageIgnore
  13. */
  14. class WPSEO_Config_Component_Connect_Google_Search_Console implements WPSEO_Config_Component {
  15. /**
  16. * Option identifier where the GSC token is stored.
  17. *
  18. * @var string
  19. */
  20. const OPTION_ACCESS_TOKEN = 'wpseo-gsc-access_token';
  21. /**
  22. * Option identifier where the GSC refresh token is stored.
  23. *
  24. * @var string
  25. */
  26. const OPTION_REFRESH_TOKEN = 'wpseo-gsc-refresh_token';
  27. /**
  28. * Service to use.
  29. *
  30. * @var WPSEO_GSC_Service
  31. */
  32. protected $gsc_service;
  33. /**
  34. * WPSEO_Config_Component_Connect_Google_Search_Console constructor.
  35. *
  36. * @deprecated 12.5
  37. *
  38. * @codeCoverageIgnore
  39. */
  40. public function __construct() {
  41. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  42. }
  43. /**
  44. * Set the Google Search Console service.
  45. *
  46. * @deprecated 12.5
  47. *
  48. * @codeCoverageIgnore
  49. *
  50. * @param mixed $service Set service to use.
  51. */
  52. public function set_gsc_service( $service ) {
  53. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  54. }
  55. /**
  56. * Gets the component identifier.
  57. *
  58. * @deprecated 12.5
  59. *
  60. * @codeCoverageIgnore
  61. *
  62. * @return string
  63. */
  64. public function get_identifier() {
  65. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  66. return 'ConnectGoogleSearchConsole';
  67. }
  68. /**
  69. * Gets the field.
  70. *
  71. * @deprecated 12.5
  72. *
  73. * @codeCoverageIgnore
  74. *
  75. * @return null
  76. */
  77. public function get_field() {
  78. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  79. return null;
  80. }
  81. /**
  82. * Get the data for the field.
  83. *
  84. * @deprecated 12.5
  85. *
  86. * @codeCoverageIgnore
  87. *
  88. * @return mixed
  89. */
  90. public function get_data() {
  91. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  92. return array();
  93. }
  94. /**
  95. * Save data.
  96. *
  97. * @param array $data Data containing changes.
  98. *
  99. * @return mixed
  100. */
  101. public function set_data( $data ) {
  102. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  103. return array();
  104. }
  105. }