class-gsc-modal.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\Google_Search_Console
  6. */
  7. /**
  8. * Represents the Google Search Console modal.
  9. *
  10. * @deprecated 12.5
  11. *
  12. * @codeCoverageIgnore
  13. */
  14. class WPSEO_GSC_Modal {
  15. /**
  16. * Sets the required attributes for this object.
  17. *
  18. * @deprecated 12.5
  19. *
  20. * @codeCoverageIgnore
  21. *
  22. * @param string $view The file with the view content.
  23. * @param int $height The height that the modal will get.
  24. * @param array $view_vars The attributes to use in the view.
  25. */
  26. public function __construct( $view, $height, array $view_vars = array() ) {
  27. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  28. }
  29. /**
  30. * Returns the height of the modal.
  31. *
  32. * @deprecated 12.5
  33. *
  34. * @codeCoverageIgnore
  35. *
  36. * @return int The set height.
  37. */
  38. public function get_height() {
  39. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  40. return 0;
  41. }
  42. /**
  43. * Loads the view of the modal.
  44. *
  45. * @deprecated 12.5
  46. *
  47. * @codeCoverageIgnore
  48. *
  49. * @param string $unique_id An unique identifier for the modal.
  50. */
  51. public function load_view( $unique_id ) {
  52. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  53. }
  54. }