SmsCode.php 614 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Pingpp;
  3. class SmsCode extends ApiResource
  4. {
  5. /**
  6. * This is a special case because the sms code 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 'sms_code';
  14. }
  15. /**
  16. * @param string $id The ID of the sms code to retrieve.
  17. * @param array|string|null $opts
  18. *
  19. * @return SMS Code
  20. */
  21. public static function retrieve($id, $opts = null)
  22. {
  23. return self::_retrieve($id, $opts);
  24. }
  25. }