interface-component.php 636 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\ConfigurationUI
  6. */
  7. /**
  8. * Config Component interface.
  9. */
  10. interface WPSEO_Config_Component {
  11. /**
  12. * Get onboarding wizard component identifier.
  13. *
  14. * @return string
  15. */
  16. public function get_identifier();
  17. /**
  18. * Get onboarding wizard component data.
  19. *
  20. * @return mixed
  21. */
  22. public function get_data();
  23. /**
  24. * Save changes.
  25. *
  26. * @param array $data Data provided by the API.
  27. *
  28. * @return mixed
  29. */
  30. public function set_data( $data );
  31. /**
  32. * Get onboarding wizard component field.
  33. *
  34. * @return WPSEO_Config_Field
  35. */
  36. public function get_field();
  37. }