StatusInfoInterface.php

  1. 8.0.x lib/Drush/UpdateService/StatusInfoInterface.php
  2. 7.x lib/Drush/UpdateService/StatusInfoInterface.php
  3. master lib/Drush/UpdateService/StatusInfoInterface.php

Interface for update_status engine implementations.

Namespace

Drush\UpdateService

Interfaces

File

lib/Drush/UpdateService/StatusInfoInterface.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Interface for update_status engine implementations.
  5. */
  6. namespace Drush\UpdateService;
  7. interface StatusInfoInterface {
  8. /**
  9. * Constructor.
  10. * @todo this pertains to a yet to be defined EngineInterface.
  11. */
  12. public function __construct($type, $engine, $config);
  13. /**
  14. * Returns time of last check of available updates.
  15. */
  16. function lastCheck();
  17. /**
  18. * Refresh update status information.
  19. */
  20. function refresh();
  21. /**
  22. * Get update information for all installed projects.
  23. *
  24. * @return Array containing remote and local versions
  25. * for all installed projects.
  26. */
  27. function getStatus($projects, $check_disabled);
  28. }