class-role-manager.php 769 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\Roles
  6. */
  7. /**
  8. * Role Manager interface.
  9. */
  10. interface WPSEO_Role_Manager {
  11. /**
  12. * Registers a role.
  13. *
  14. * @param string $role Role to register.
  15. * @param string $display_name Display name to use.
  16. * @param null|string $template Optional. Role to base the new role on.
  17. *
  18. * @return void
  19. */
  20. public function register( $role, $display_name, $template = null );
  21. /**
  22. * Adds the registered roles.
  23. *
  24. * @return void
  25. */
  26. public function add();
  27. /**
  28. * Removes the registered roles.
  29. *
  30. * @return void
  31. */
  32. public function remove();
  33. /**
  34. * Returns the list of registered roles.
  35. *
  36. * @return string[] List or registered roles.
  37. */
  38. public function get_roles();
  39. }