Event.php 862 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Stripe;
  3. /**
  4. * Class Event
  5. *
  6. * @property string $id
  7. * @property string $object
  8. * @property string $api_version
  9. * @property int $created
  10. * @property mixed $data
  11. * @property bool $livemode
  12. * @property int $pending_webhooks
  13. * @property string $request
  14. * @property string $type
  15. *
  16. * @package Stripe
  17. */
  18. class Event extends ApiResource
  19. {
  20. /**
  21. * @param string $id The ID of the event to retrieve.
  22. * @param array|string|null $opts
  23. *
  24. * @return Event
  25. */
  26. public static function retrieve($id, $opts = null)
  27. {
  28. return self::_retrieve($id, $opts);
  29. }
  30. /**
  31. * @param array|null $params
  32. * @param array|string|null $opts
  33. *
  34. * @return Collection of Events
  35. */
  36. public static function all($params = null, $opts = null)
  37. {
  38. return self::_all($params, $opts);
  39. }
  40. }