CardInfo.php 825 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Pingpp;
  3. class CardInfo extends ApiResource
  4. {
  5. /**
  6. * This is a special case because the card info endpoint has an
  7. * underscore in it. The parent `className` function strips underscores.
  8. *
  9. * @return string The name of the class.
  10. */
  11. public static function className()
  12. {
  13. return 'card_info';
  14. }
  15. /**
  16. * @return string The endpoint URL for the given class.
  17. */
  18. public static function classUrl()
  19. {
  20. $base = static::className();
  21. return "/v1/${base}";
  22. }
  23. /**
  24. * @param array|null $params
  25. * @param array|string|null $options
  26. *
  27. * @return CardInfo The queried cardInfo.
  28. */
  29. public static function query($params = null, $options = null)
  30. {
  31. return self::_create($params, $options);
  32. }
  33. }