Transfer.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace Pingpp;
  3. class Transfer extends ApiResource
  4. {
  5. /** 查询指定 transfer 对象
  6. * @param string $id The ID of the transfer to retrieve.
  7. * @param array|string|null $options
  8. *
  9. * @return Transfer
  10. */
  11. public static function retrieve($id, $options = null)
  12. {
  13. return self::_retrieve($id, $options);
  14. }
  15. /** 查询 transfer 对象列表
  16. * @param array|null $params
  17. * @param array|string|null $options
  18. *
  19. * @return array An array of Transfer.
  20. */
  21. public static function all($params = null, $options = null)
  22. {
  23. return self::_all($params, $options);
  24. }
  25. /** 创建 transfer 对象
  26. * @param array|null $params
  27. * @param array|string|null $options
  28. *
  29. * @return Transfer The created transfer.
  30. */
  31. public static function create($params = null, $options = null)
  32. {
  33. return self::_create($params, $options);
  34. }
  35. /** 更新 transfer 对象
  36. * @param array|string|null $options
  37. *
  38. * @return Transfer The created transfer.
  39. */
  40. public function save($options = null)
  41. {
  42. return $this->_save($options);
  43. }
  44. }