Event.php 583 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Pingpp;
  3. class Event extends ApiResource
  4. {
  5. /**
  6. * @param string $id The ID of the event to retrieve.
  7. * @param array|string|null $options
  8. *
  9. * @return Event
  10. */
  11. public static function retrieve($id, $options = null)
  12. {
  13. return self::_retrieve($id, $options);
  14. }
  15. /**
  16. * @param array|null $params
  17. * @param array|string|null $options
  18. *
  19. * @return array An array of Events.
  20. */
  21. public static function all($params = null, $options = null)
  22. {
  23. return self::_all($params, $options);
  24. }
  25. }