Capability.php 657 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Capability interface declaring the known capabilities.
  4. *
  5. * @package Requests\Utilities
  6. */
  7. namespace WpOrg\Requests;
  8. /**
  9. * Capability interface declaring the known capabilities.
  10. *
  11. * This is used as the authoritative source for which capabilities can be queried.
  12. *
  13. * @package Requests\Utilities
  14. */
  15. interface Capability {
  16. /**
  17. * Support for SSL.
  18. *
  19. * @var string
  20. */
  21. const SSL = 'ssl';
  22. /**
  23. * Collection of all capabilities supported in Requests.
  24. *
  25. * Note: this does not automatically mean that the capability will be supported for your chosen transport!
  26. *
  27. * @var array<string>
  28. */
  29. const ALL = [
  30. self::SSL,
  31. ];
  32. }