class-endpoint.php 471 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\Endpoints
  6. */
  7. /**
  8. * Dictates the required methods for an Endpoint implementation.
  9. */
  10. interface WPSEO_Endpoint {
  11. /**
  12. * Registers the routes for the endpoints.
  13. *
  14. * @return void
  15. */
  16. public function register();
  17. /**
  18. * Determines whether or not data can be retrieved for the registered endpoints.
  19. *
  20. * @return bool Whether or not data can be retrieved.
  21. */
  22. public function can_retrieve_data();
  23. }