Webhook.php 383 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Pusher;
  3. class Webhook
  4. {
  5. private $time_ms;
  6. private $events = array();
  7. public function __construct($time_ms, $events)
  8. {
  9. $this->time_ms = $time_ms;
  10. $this->events = $events;
  11. }
  12. public function get_events()
  13. {
  14. return $this->events;
  15. }
  16. public function get_time_ms()
  17. {
  18. return $this->time_ms;
  19. }
  20. }