BaseChecker.php 547 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace YahnisElsts\PluginUpdateChecker\v5p0\Vcs;
  3. if ( !interface_exists(BaseChecker::class, false) ):
  4. interface BaseChecker {
  5. /**
  6. * Set the repository branch to use for updates. Defaults to 'master'.
  7. *
  8. * @param string $branch
  9. * @return $this
  10. */
  11. public function setBranch($branch);
  12. /**
  13. * Set authentication credentials.
  14. *
  15. * @param array|string $credentials
  16. * @return $this
  17. */
  18. public function setAuthentication($credentials);
  19. /**
  20. * @return Api
  21. */
  22. public function getVcsApi();
  23. }
  24. endif;