CountrySpec.php 983 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace Stripe;
  3. /**
  4. * Class CountrySpec
  5. *
  6. * @package Stripe
  7. */
  8. class CountrySpec extends ApiResource
  9. {
  10. /**
  11. * This is a special case because the country specs endpoint has an
  12. * underscore in it. The parent `className` function strips underscores.
  13. *
  14. * @return string The name of the class.
  15. */
  16. public static function className()
  17. {
  18. return 'country_spec';
  19. }
  20. /**
  21. * @param string $country The ISO country code of the country we retrieve the CountrySpec for.
  22. * @param array|string|null $opts
  23. *
  24. * @return CountrySpec
  25. */
  26. public static function retrieve($country, $opts = null)
  27. {
  28. return self::_retrieve($country, $opts);
  29. }
  30. /**
  31. * @param array|null $params
  32. * @param array|string|null $opts
  33. *
  34. * @return Collection of CountrySpecs
  35. */
  36. public static function all($params = null, $opts = null)
  37. {
  38. return self::_all($params, $opts);
  39. }
  40. }